I believe Lucene's QueryParser doesn't allow you to specify a leading wildcard.
However, the WildcardQuery class does allow leading wildcard queries, such as
"*technology". This is probably the easiest way to get around this.
You do have other options that can specify a wildcard search, such as
Thanks for the info on this. Since I should use the search function that
returns TopDocs, I was wondering what was the proper way to create a
Weight object to pass into the search function.
There are 2 functions in the Query class that I see: createWeight and
weight, which both return a Weight ob
Thanks, I definitely missed this. Makes it a lot more simpler to use...
Appreciate your help Chris.
Gary
-Original Message-
From: Chris Hostetter [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 08:26 AM
To: java-user@lucene.apache.org
Subject: RE: best way to get specific re
I encountered this issue before and was led to use SpanQueries for
wildcards within phrases. Take a look at the SpanQuery family of
classes. SpanQueries can give you the ability to specify a wildcarded
term within a phrase since you can nest different SpanQueries within a
SpanQuery. One of these is
I am seeing this issue as well with the exact same stack trace using
spanQueries. Does anyone know if this has been fixed for versions after
1.9.1?
Thanks
Gary
-Original Message-
From: Erick Erickson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 07:23 AM
To: java-user@lucene.apa
Hi all,
Im just wondering if anyone has done any scalability tests with Lucene. Has
anyone been able to index up to the 10 million mark in terms of number of
objects indexed in a single index? An estimate of how many objects you have
indexed is appreciated.
Thanks!!
Gary
Is it possible to have wildcards in a phrase search? For example, if my
object is indexed with a phrase "benchmark properties", is there a way to
specify a phrase search that uses wildcards, such as "benchmar* properties"
or "benchmark pro*"? I have tried using WildcardQuery, but it doesnt seem to
Thanks for your reply. Is there any sample code that would demonstrate how
to use these classes properly to get the desired effect of what im looking
for?
Thanks
-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 10, 2006 11:00 AM
To: java-user@lucene.a
Thanks Erik, I was able to get a solution working for me using the classes
you outlined below.
-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 10, 2006 12:11 PM
To: java-user@lucene.apache.org
Subject: Re: wildcards in phrase searches
On May 10, 20
Hi,
I have the same situation where Im interested in returning a subset of
results from the whole set, such as results 500 to 550. However, I have
already implemented a Filter that will return the results I want without
additional query processing needed (i.e. no need to use the
IndexSearcher.sear
10 matches
Mail list logo