dexed. Because if this is so then
we still have the problem of doubling the index size.
-Original Message-
From: Erick Erickson [mailto:[EMAIL PROTECTED]
Sent: 19 February 2007 19:02
To: java-user@lucene.apache.org
Subject: Re: Search in all fields
Sure. Convert your simple querie
-Original Message-
From: Erick Erickson [mailto:[EMAIL PROTECTED]
Sent: 19 February 2007 19:02
To: java-user@lucene.apache.org
Subject: Re: Search in all fields
Sure. Convert your simple queries into span queries (which are also
relatively simple). Then, when you index everything in
Sure. Convert your simple queries into span queries (which are also
relatively simple). Then, when you index everything in the "all" field,
subclass your analyzer to return a large PositionIncrementGap. Explaining
how this works with words is awkward, so
doc.add("all", "one two three");
doc.a
Hi All,
I want to be able to do a search for a term in all fields in a document.
One way this can be done is to put every element of a document in the
default field (or I guess any other single named field) as well as
separate fields in which those elements belong. So for example if for
my docu
18 jan 2007 kl. 09.54 skrev David:
Hi all:
I study Lucene and I want build search on all the fields, I find
MultiFieldQueryParser can search on multiple fields, but we must
specify
fields. maybe we can add a field named all_field that contain all
the fields
when indexing, but it make t
can't use the same tokenizer/analyzer for all
default fields.
john
- Original Message
From: David <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Thursday, January 18, 2007 12:54:20 AM
Subject: search in all fields
Hi all:
I study Lucene and I want build search
Hi all:
I study Lucene and I want build search on all the fields, I find
MultiFieldQueryParser can search on multiple fields, but we must specify
fields. maybe we can add a field named all_field that contain all the fields
when indexing, but it make the index file larger.
so how to make sea