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

Re: Phrase Query Problem

2007-12-18 Thread Erick Erickson
ing is to make sure the exact query requirement, > then picking up analyzer. > > Best regards, Lisheng > > -- > View this message in context: > http://www.nabble.com/Phrase-Query-Problem-tp14373945p14404143.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >

RE: Phrase Query Problem

2007-12-18 Thread Sirish Vadala
hing is to make sure the exact query requirement, then picking up analyzer. Best regards, Lisheng -- View this message in context: http://www.nabble.com/Phrase-Query-Problem-tp14373945p14404143.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. ---

RE: Phrase Query Problem

2007-12-18 Thread Zhang, Lisheng
ish Vadala [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 18, 2007 10:26 AM To: java-user@lucene.apache.org Subject: RE: Phrase Query Problem ok, thnx... I will implement using the WhiteSpaceAnalyzer... Let me check the indexing speed... I mean time taken to index my data set... If that takes t

RE: Phrase Query Problem

2007-12-18 Thread Sirish Vadala
-Original Message- > From: mark harwood [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 18, 2007 9:42 AM > To: java-user@lucene.apache.org > Subject: Re: Phrase Query Problem > > > You could write a custom analyzer that drops stopwords but adds an extra 1 > to the &

RE: Phrase Query Problem

2007-12-18 Thread Zhang, Lisheng
- From: mark harwood [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 18, 2007 9:42 AM To: java-user@lucene.apache.org Subject: Re: Phrase Query Problem You could write a custom analyzer that drops stopwords but adds an extra 1 to the "positionIncrement" property for the next v

Re: Phrase Query Problem

2007-12-18 Thread mark harwood
ecause the remaining words are not recorded as being directly next to each other) Cheers Mark - Original Message From: Sirish Vadala <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Tuesday, 18 December, 2007 5:10:19 PM Subject: RE: Phrase Query Problem Yes... If my

RE: Phrase Query Problem

2007-12-18 Thread Sirish Vadala
ers out "and" (also "or, "in" and others) as stop > words during indexing, and the QueryParser filters those > words out also. > > Best regards, Lisheng > > -Original Message- > From: Sirish Vadala [mailto:[EMAIL PROTECTED] > Sent: Monday,

RE: Phrase Query Problem

2007-12-17 Thread Zhang, Lisheng
n", "there", "these", "they", "this", "to", "was", "will", "with" ### The end result is the same as your input text is Health Safety Best regards, Lisheng -Original Message- Fr

RE: Phrase Query Problem

2007-12-17 Thread Zhang, Lisheng
eryParser filters those words out also. Best regards, Lisheng -Original Message- From: Sirish Vadala [mailto:[EMAIL PROTECTED] Sent: Monday, December 17, 2007 9:49 AM To: java-user@lucene.apache.org Subject: Phrase Query Problem I have the following code for search: BooleanQuery b

Phrase Query Problem

2007-12-17 Thread Sirish Vadala
sing standard analyzer while indexing my records. Any help on this is greatly appreciated. Sirish Vadala -- View this message in context: http://www.nabble.com/Phrase-Query-Problem-tp14373945p14373945.html Sent from the Lucene - Java Users mailing list archive

wildcard in phrase query: problem with idf / scoring; QueryParser; MultiPhraseQuery

2006-07-03 Thread W.H. van Atteveldt
Dear List, I am using lucene to count the number of hits of queries in documents (ie taking raw frequencies as scores), which seems to work fairly well using a modified Similarity, returning freq for tf and 1.0 for everyting else, and a HitCollector to collect the hits. I also want to allow 'pref