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: > 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 I'm trying to search the index, I only get the values of the column > text (default field name). > Searcher searcher = new IndexSearcher(DIR); > QueryParser qp = new QueryParser("text", new StandardAnalyzer()); > Query query = qp.parse("a*"); > > How to query a search engine, if I want to get results from all indexed > fields, not only default provided? > > Thanks in advance, > Audrius > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]