thinkmap.server.search
Class QueryBuilder

java.lang.Object
  extended by thinkmap.server.search.QueryBuilder

public class QueryBuilder
extends Object


Nested Class Summary
protected  class QueryBuilder.Parser
           
 
Field Summary
static String ENTITY_TYPE_FIELD
           
static String FULL_TEXT_FIELD
           
 
Constructor Summary
QueryBuilder(Searchable s)
           
 
Method Summary
protected  org.apache.lucene.search.Query buildRHS(String field, Object value)
           
protected  org.apache.lucene.queryParser.QueryParser constructParser()
           
 org.apache.lucene.search.Query parseQuery(Message m)
           
 org.apache.lucene.search.Query parseQuery(String search)
           
protected
<T> org.apache.lucene.search.Query
queryFor(FieldDef<T> fd, Object value)
           
protected  org.apache.lucene.search.Query queryFor(String field, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FULL_TEXT_FIELD

public static final String FULL_TEXT_FIELD
See Also:
Constant Field Values

ENTITY_TYPE_FIELD

public static final String ENTITY_TYPE_FIELD
See Also:
Constant Field Values
Constructor Detail

QueryBuilder

public QueryBuilder(Searchable s)
Method Detail

parseQuery

public org.apache.lucene.search.Query parseQuery(String search)
                                          throws org.apache.lucene.queryParser.ParseException
Throws:
org.apache.lucene.queryParser.ParseException

parseQuery

public org.apache.lucene.search.Query parseQuery(Message m)
                                          throws org.apache.lucene.queryParser.ParseException
Throws:
org.apache.lucene.queryParser.ParseException

buildRHS

protected org.apache.lucene.search.Query buildRHS(String field,
                                                  Object value)
                                           throws org.apache.lucene.queryParser.ParseException
Throws:
org.apache.lucene.queryParser.ParseException

constructParser

protected org.apache.lucene.queryParser.QueryParser constructParser()

queryFor

protected org.apache.lucene.search.Query queryFor(String field,
                                                  Object value)
                                           throws org.apache.lucene.queryParser.ParseException
Throws:
org.apache.lucene.queryParser.ParseException

queryFor

protected <T> org.apache.lucene.search.Query queryFor(FieldDef<T> fd,
                                                      Object value)
                                           throws org.apache.lucene.queryParser.ParseException
Throws:
org.apache.lucene.queryParser.ParseException


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.