RE: lucene 3.0.3 | phrase query problem

2011-02-11 Thread Zhang, Lisheng
bruary 10, 2011 10:41 PM To: java-user-h...@lucene.apache.org; java-user@lucene.apache.org Subject: lucene 3.0.3 | phrase query problem Hi Anshum, Thanks for your replay.. Yes, I am agree with you. As right now, I am using StandardAnalyzer it remove stop words, Puts text in lowercase and do not crea

lucene 3.0.3 | phrase query problem

2011-02-10 Thread Ranjit Kumar
Hi Anshum, Thanks for your replay.. Yes, I am agree with you. As right now, I am using StandardAnalyzer it remove stop words, Puts text in lowercase and do not create index for most common word in English. Searching on index created by StandardAnalyzer it gives result as discussed

Re: lucene 3.0.3 | phrase query problem

2011-02-10 Thread Anshum
Hi Ranjit, That would be because all stop words (space, comma, stop word set, etc..) would be treated in a similar fashion and escaped while indexing, subject to the analyzer you use while index your content. Hope that explains the issue. -- Anshum Gupta http://ai-cafe.blogspot.com On Thu, Feb 1

lucene 3.0.3 | phrase query problem

2011-02-10 Thread Ranjit Kumar
searchString = "i am using sql. server setting is easy task."; while i am searching for phrase query "Sql Server" in above string it gives result which is not correct. As In the above string sql and server is seperated by dot(.) using both PhraseQuery and SpanQuery gives same result. Hi,

RE: lucene 3.0.3 | phrase query problem

2011-02-09 Thread Zhang, Lisheng
uot;sql. server" we should not get result? Best regards, Lisheng -Original Message- From: Ranjit Kumar [mailto:ranjit.ku...@otssolutions.com] Sent: Wednesday, February 09, 2011 9:39 PM To: java-user-h...@lucene.apache.org; java-user@lucene.apache.org Subject: lucene 3.0.3 | phrase que

lucene 3.0.3 | phrase query problem

2011-02-09 Thread Ranjit Kumar
Hi, I am using SpanQuery and SpanNearQuery to get phrase query like "Sql Server". In my text file in which I am searching, it is present like (sql. server) mean 'sql dot server' which is not a span like "Sql Server". While searching for phrase query "Sql Server". It gives result for (sql. ser