Thanks for the reply hossman.

I have successfully created a custom QParserPlugin that implements some
special syntax to help me handle my many dynamic fields.

The syntax looks something like this:

  http://127.0.0.1:8994/solr/select...@fn:(1,2,3,4)

Had to create java code to extract the virtual function and its parameters. 
Will look at your comment further to see if it can help me any with parsing.



hossman wrote:
> 
> 
> : 2. is there an existing method for parsing out the fields and their
> : parameters? i.e. to break a qstr of "xxx:[* TO 3] AND yyy:[3 TO *]" into
> an
> : array something like  x[0][0] = "xxx", x[0][1]="* TO 3", x[1][0] =
> "yyy",
> : x[1][1]="3 TO *".  Or possibly even finer granularity than that.  I
> could
> : write it myself but its much nicer not to have to (especially since the
> : queries could be very complex).
> 
> if you wnat to reuse the existing Lucene syntax (and based on your example 
> here it seems like you do) then your best bet is probably to have your 
> QParser create a subclass of the Lucen QueryParser where you override each 
> of the get methods to inspect the "field" argument, change it as you see 
> fit, and then delegate to the superclass to build the actual query object.  
> that's the closest thing to what you describe.
> 
> 
> -Hoss
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/about-modifying-querystring-parameters-submitted-to-solr-tp25752898p25827695.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to