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
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
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
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,
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
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
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]
>
>
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.
---
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
-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 &
-
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
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
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,
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
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
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
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
17 matches
Mail list logo