lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Foster" <...@planetcloud.co.uk>
Subject [Lucene.Net] escaping single quotes when using query parser
Date Thu, 07 Apr 2011 09:01:23 GMT
Hi,

 

How should we escape single quotes when working with the query parser?

 

Currently we have a description field that may contain single quotes.

 

Whilst this field is correctly indexed when we search the description no
results are returned. I'm assuming it's because we need to replace the
single quote in the search term with an escaped version.

 

Many thanks,

 

Ben Foster

 

planetcloud
The Elms, Hawton
Newark-on-Trent
Nottinghamshire
NG24 3RL

 

 <http://www.planetcloud.co.uk/> www.planetcloud.co.uk

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message