RE: Cannot Escape Special charectors Search with Lucene.Net 2.0

2010-12-17 Thread Granroth, Neal V.
; + ixDoc.Get("name")); } ixSearcher.Close(); ixStoreII.Close(); ---- The output is: Found Doc-1 Found Doc-2 - Neal -----Original Message- From: Robert Jordan [mailto:robe...@gmx.net] Sent: Friday, December 17, 2010 11:12 AM To: lucene-net-...@incubator.a

Re: Cannot Escape Special charectors Search with Lucene.Net 2.0

2010-12-17 Thread Robert Jordan
On 17.12.2010 12:29, abhilash ramachandran wrote: q = new global::Lucene.Net.QueryParsers.QueryParser("content", new StandardAnalyzer()).Parse(query); I believe the issue has nothing to do with your query syntax. StandardAnalyzer is skipping chars like "&" during the indexing process, so you ca

Re: Cannot Escape Special charectors Search with Lucene.Net 2.0

2010-12-17 Thread Vincent DARON
Hi Abhilash, Try with: Test\&\&Test From Documentation (http://lucene.apache.org/java/2_3_2/queryparsersyntax.html): == Lucene supports escaping special characters that are part of the query syntax. The current list special characters are + - && || ! ( ) { } [ ] ^ " ~ * ? : \ To