: You need to use MultiFieldQueryParser
:
:
http://lucene.apache.org/java/docs/api/org/apache/lucene/queryParser/MultiFieldQueryParser.html
or put the text from all of your fields into one uber catchall field and
make that the default...
foreach (column) {
Field f = new Field(column.name
You need to use MultiFieldQueryParser
http://lucene.apache.org/java/docs/api/org/apache/lucene/queryParser/MultiFieldQueryParser.html
Sincerely,
Chris Lu
-
Full-text search on Any Databases/Applications
http://www.dbsight.net
On 4/27/06, Audrius Peseckis <[EMAIL PROTECTED]> wrote:
> Hel
Hello,
What I'm trying to do is to index database with lucene. Each row returned by
SQL query is represented as document, and document contains fields (values of
columns). I'm adding those fields to document by doing the following:
Field fld = new Field("COLUMN_NAME", column.value());
Now when