org.jactr.core.module.declarative.search
Interface ISearchSystem

All Known Implementing Classes:
DefaultSearchSystem

public interface ISearchSystem

A search system that indexes and retrieves I(ndexable) based on P(attern)

Author:
developer

Method Summary
 void clear()
           
 java.util.Collection<IChunk> findExact(ChunkTypeRequest pattern, java.util.Comparator<IChunk> sortRule)
          return all I that match this pattern exactly
 java.util.Collection<IChunk> findFuzzy(ChunkTypeRequest pattern, java.util.Comparator<IChunk> sortRule)
          find all I that match this pattern somewhat
 void index(IChunk chunk)
          index this object
 void unindex(IChunk chunk)
          remove this object from the index
 void update(IChunk chunk, java.lang.String slotName, java.lang.Object oldValue, java.lang.Object newValue)
           
 

Method Detail

index

void index(IChunk chunk)
index this object


unindex

void unindex(IChunk chunk)
remove this object from the index


update

void update(IChunk chunk,
            java.lang.String slotName,
            java.lang.Object oldValue,
            java.lang.Object newValue)

findExact

java.util.Collection<IChunk> findExact(ChunkTypeRequest pattern,
                                       java.util.Comparator<IChunk> sortRule)
return all I that match this pattern exactly

Parameters:
pattern -
sortRule - may be null
Returns:

findFuzzy

java.util.Collection<IChunk> findFuzzy(ChunkTypeRequest pattern,
                                       java.util.Comparator<IChunk> sortRule)
find all I that match this pattern somewhat

Parameters:
pattern -
Returns:

clear

void clear()