org.opensolaris.opengrok.search.context
Class QueryMatchers

java.lang.Object
  extended by org.opensolaris.opengrok.search.context.QueryMatchers

public final class QueryMatchers
extends java.lang.Object

Utility class used to extract the terms used in a query This class will not find terms for MultiTermQuery, RangeQuery and PrefixQuery classes so the caller must pass a rewritten query (see query.rewrite) to obtain a list of expanded terms.


Constructor Summary
QueryMatchers()
           
 
Method Summary
 LineMatcher[] getMatchers(org.apache.lucene.search.Query query, java.util.Set fields)
          Get the terms from a query and returs a list of DFAs which match a stream of tokens
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryMatchers

public QueryMatchers()
Method Detail

getMatchers

public LineMatcher[] getMatchers(org.apache.lucene.search.Query query,
                                 java.util.Set fields)
Get the terms from a query and returs a list of DFAs which match a stream of tokens

Parameters:
query -
Returns:
list of LineMatching DFAs