Hi,
I know the indexed content contains the following text: "This is a test".
And the search phrase I used is "This is a formal test", and then I set the
slop of the PhraseQuery as 2 with setSlop(2), but I found that I can not get
a search result. If I set the search phrase as "This is formal test
which analyzer are you usin'?
On Sun, Jun 27, 2010 at 7:12 AM, a peng wrote:
> Hi,
>
> I know the indexed content contains the following text: "This is a test".
> And the search phrase I used is "This is a formal test", and then I set the
> slop of the PhraseQuery as 2 with setSlop(2), but I fo
Hi,
I am using StandardAnalyzer(Version.LUCENE_30);
2010/6/27 tarun sapra
> which analyzer are you usin'?
>
>
> On Sun, Jun 27, 2010 at 7:12 AM, a peng wrote:
>
> > Hi,
> >
> > I know the indexed content contains the following text: "This is a test".
> > And the search phrase I used is "This i
Hi ,
I think I have been able to understand whats happening here...
Indexed Content : "This is a test".
your search phrase : "This is a formal test"
your setting the slop factor 2 , now if your slop factor is 3 it should work
because "is" and "a" are stop words thus the words "This" and "test" ar
Hi,
My test result is that whenever the search phrase contains a word that don't
exist in the document, the search result will be empty no matter how big the
slop factor I set, seems this is a bug of Lucene, or it is work as design?
2010/6/28 tarun sapra
> Hi ,
>
> I think I have been able to u
I think you're misunderstanding the intent of PhraseQueries and slop. Slop
is the number of intervening tokens that may exist between the words
you're looking for. However, all the words you're looking for MUST exist.
So,
<<< whenever the search phrase contains a word that don't
exist in the docum
Hey Erick
Thanks mate!
So I guess my explanation in the mail chain above was correct!
On Mon, Jun 28, 2010 at 6:20 AM, Erick Erickson wrote:
> I think you're misunderstanding the intent of PhraseQueries and slop. Slop
> is the number of intervening tokens that may exist between the words
> you'
No, I don't think so. The critical bit is that the indexed text
does NOT contain the word "formal". So searching for
any phrase that DOES contain "formal" should fail no matter
what the slop.
Phrase queries are something like "find all the words in this
search string, ignoring some number of inte
Hi Erick,
Thanks for you reply, now I get the point why I can not get the search
result. But can you guide me how can I use Lucene to implement the following
search feature:
Basically we can call this feature "fuzzy phrase search", which means the
search phrase may contains more words or less word
Hi Erick,
Any comments about this requirement?
2010/6/29 a peng
> Hi Erick,
>
> Thanks for you reply, now I get the point why I can not get the search
> result. But can you guide me how can I use Lucene to implement the following
> search feature:
> Basically we can call this feature "fuzzy phr
No, I really don't have a good solution off the top of my head, perhaps
others can chime in...
Although I suppose you could fire multiple queries dropping out
some number of search terms, but I don't know whether that
satisfies your requirements. E.g. search the following phrases
"this is a formal
11 matches
Mail list logo