lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Lucene DB indexing and searching Question (1.9.1)
Date Thu, 27 Apr 2006 18:08:13 GMT

: 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, column.value);
     Field c = new Field("catchall", column.value);
     doc.add(f);
     doc.add(c);
  }



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message