You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Joe Calderon <ca...@gmail.com> on 2009/10/01 00:48:41 UTC

changing dismax parser to not treat symbols differently

how would i go about modifying the dismax parser to treat +/- as regular text?

Re: changing dismax parser to not treat symbols differently

Posted by Mark Miller <ma...@gmail.com>.
Joe Calderon wrote:
> how would i go about modifying the dismax parser to treat +/- as regular text?
>   
Would be nice if there was a tiny simple method you could override for
this, but:

You should extend the dismax parser and override addMainQuery

Where it calls SolrPluginUtils.partialEscape, call your own escape
method that does what that one does, but also
escapes + and -.

I think that should work alright.

-- 
- Mark

http://www.lucidimagination.com