: Well, first ~ isn't a wildcard, it's a "fuzzy search" (aka similar terms).
: So getting "bellow" for "yellow~" is expected. Although, somewhat
: confusingly, "lemon orange"~10 is a proximity search.
FYI: the meme there is that in the QueryParser ~ denotes something is
sloppy or "loose" ... so
Erick,
Very useful answers -- I'll be reading up more with the links you've
provided.
Thanks.
Jeff
-Original Message-
From: Erick Erickson [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 11, 2006 5:51 PM
To: java-user@lucene.apache.org
Subject: Re: Partial Word Matches
See below
See below.
On 11/11/06, Storey, Jeff <[EMAIL PROTECTED]> wrote:
I stand corrected -- I am NOT getting partial matches, I was extracting
partial matches from the text programmatically and thought that's what
was being returned.
On another topic, regarding Boolean queries and wildcard querie
I stand corrected -- I am NOT getting partial matches, I was extracting
partial matches from the text programmatically and thought that's what
was being returned.
On another topic, regarding Boolean queries and wildcard queries, I have
two questions:
It seems like when I enter the query "ball AND
For proprietary reasons, I cannot post code samples, but I can give you
more details as to what I am doing. I am basically trying to search a
directory of text files.
Step 1: Create an IndexWriter for the directory being searched.
Step 2: For each text file, create a new Document object and add t
Indeed, the only way this can happen as far as I know Lucene is by using a
stemmer during indexing, the standard analyzer won't result in such
behaviour.
hth
Paul
On 11/11/06, Erick Erickson <[EMAIL PROTECTED]> wrote:
That's not the default behavior, so I'm perplexed. Normally, you have to
go
That's not the default behavior, so I'm perplexed. Normally, you have to go
to considerable effort to get partial matches
What analyzers are you using at both index and query time? Perhaps as short
a code snippet as you could make showing this behavior would be a good thing
to post. I flat gu
Hi. I'm using Lucene to do some searching (using the Searcher object and
passing it a ParsedQuery). I search for a word such as "long" and it is
returning partial matches, such as "belong" and "along." Is there a way
to turn off this behavior and only match whole words?
Thank you,
Jeff