Re: Handling special characters in Lucene 4.0

2013-10-20 Thread Jack Krupansky
. -- Jack Krupansky -Original Message- From: saisantoshi Sent: Sunday, October 20, 2013 7:43 PM To: java-user@lucene.apache.org Subject: Re: Handling special characters in Lucene 4.0 what about other characters like '&,'( quote) characters. We have a requirement that a text

Re: Handling special characters in Lucene 4.0

2013-10-20 Thread saisantoshi
what about other characters like '&,'( quote) characters. We have a requirement that a text can start with 'sampletext' and when I search with a '* it does not return any results but instead when I search with sample*, it does return the result. Thanks, Ranjith, -- View this message in context:

Re: Handling special characters in Lucene 4.0

2013-10-20 Thread Jack Krupansky
special characters that the escape method mentions. -- Jack Krupansky -Original Message- From: saisantoshi Sent: Sunday, October 20, 2013 7:12 PM To: java-user@lucene.apache.org Subject: Re: Handling special characters in Lucene 4.0 Thanks. So, if I understand correctly, Standa

Re: Handling special characters in Lucene 4.0

2013-10-20 Thread Benson Margulies
It might be helpful if you would explain, at a higher level, what you are trying to accomplish. Where do these things come from? What higher-level problem are you trying to solve? On Sun, Oct 20, 2013 at 7:12 PM, saisantoshi wrote: > Thanks. > > So, if I understand correctly, StandardAnalyzer won

Re: Handling special characters in Lucene 4.0

2013-10-20 Thread saisantoshi
Thanks. So, if I understand correctly, StandardAnalyzer wont work for the following below as it strips out the special characters and does search only on searchText ( in this case). queryText = *&&searchText* If we want to do a search like "*&&**" then we need to use WhiteSpaceAnalyzer. Please l

Re: Handling special characters in Lucene 4.0

2013-10-20 Thread Jack Krupansky
ecial characters with a backslash, and then leave the asterisk unescaped to perform a wildcard query. -- Jack Krupansky -Original Message- From: saisantoshi Sent: Sunday, October 20, 2013 6:02 PM To: java-user@lucene.apache.org Subject: Re: Handling special characters in Lucen

Re: Handling special characters in Lucene 4.0

2013-10-20 Thread saisantoshi
StandardAnalyzer both at index and search time. We use the default one and don't have any custom analyzers. Thanks, Sai -- View this message in context: http://lucene.472066.n3.nabble.com/Handling-special-characters-in-Lucene-4-0-tp4096674p4096710.html Sent from the Lucene - Java Users mailing

Re: Handling special characters in Lucene 4.0

2013-10-20 Thread Jack Krupansky
using at query time? -- Jack Krupansky -Original Message- From: saisantoshi Sent: Sunday, October 20, 2013 12:47 PM To: java-user@lucene.apache.org Subject: Handling special characters in Lucene 4.0 I have created strings like the below &&searchtext +sampletext and when

Handling special characters in Lucene 4.0

2013-10-20 Thread saisantoshi
I have created strings like the below &&searchtext +sampletext and when I try to search the following using *&&** or *+** it does not give any result. I am using QueryParser.escape(String s) method to handle the special characters but does not look like it did anything. Also, when I search some