Re: Getting query fields in a custom SearchHandler

2011-06-08 Thread Marc SCHNEIDER
Hi, I reply to myself :-) The solution is to use this utility class : org.apache.solr.search.QueryParsing. Then you can do: Query luceneQuery = QueryParsing.parseQuery(req.getParams().get(q), req.getSchema()); Then with luceneQuery you can use the extractTerms method. Marc. On Fri, Jun 3,

Getting query fields in a custom SearchHandler

2011-06-03 Thread Marc SCHNEIDER
Hi all, I wrote my own SearchHandler and therefore overrided the handleRequestBody method. This method takes two input parameters : SolrQueryRequest and SolrQueryResponse objects. The thing I'd like to do is to get the query fields that are used in my request. Of course I can use