Hi Darren,

I think that if I had to get the parsing result, I would create my own
QueryComponent which would create the parser in the 'prepare' function (you
can take a look to the actual QueryComponent class) and instead of resolving
the query in the 'process' function, I would just parse the query and then
it should be possible to serialize the returned Query object to the
response.

Then you could declare this new query component in the solr config file.
And finally, with solrj, you should be able to get the parsed query in the
response, unserialize it and do your stuff ;)

The Query object could be considered as an AST, I think :).

This is how I would start, if I had to do that.

Ludovic. 

 

-----
Jouve
France.
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Obtaining-query-AST-tp3007289p3008330.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to