: I am building up a query with quite a bit of logic such as parentheses, plus
: signs, etc... and it's a little tedious dealing with it all at a string
: level.  I was wondering if anyone has any thoughts on constructing the query
: in lucene and using the string representation of the query to send to solr.

There was another thread where this idea came up recently; although your 
motivation is very differnet from that persons, all of the general 
concerns still apply...

http://search.lucidimagination.com/search/document/514adb88f7288ac1/can_i_use_per_field_analyzers_and_dynamic_fields

...that's not to say that it couldn't be *made* to work out, assuming a 
limited set of Query types and a specific analyzer were used, but it's not 
really waht the Query class (or it's toString method) were designed for -- 
it would probably be easier to write a custom query string formatter 
class, or to implement a QParser to apply your logic on the server side 
given simple key-val(s) input params.

-Hoss

Reply via email to