lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venkatraman, Shiv" <Shiv.Venkatra...@broadvision.com>
Subject searching data indexed from database??
Date Sat, 31 May 2003 14:33:11 GMT
I have an indexer that reads data from database and indexes the data.
  foreach(db_row) {
      Document doc = new Document();
      doc.add(Field.Text("Product", productName);
      doc.add(Field.Text("Description", productDesc);
...
      writer.addDocument(doc);
  }


Once indexed, I would like to do a search that spans across multiple fields.
i.e. the user may enter "lawnmower" and it should perform a search across
all the indexed fields. Also, how do I pass user queries like  "lawnmower
-grass" to the query API?

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


Mime
View raw message