You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Frank Burough <fb...@elixirpharm.com> on 2003/06/02 14:31:34 UTC
RE: API to perform full-text search
I am new to Lucene, and there may be a better way, but I use a field 'all' in which I put any and all text that I want to be searchable across all fields. This is in addition to the other fields for directed searches.
HTH
Frank
> -----Original Message-----
> From: Venkatraman, Shiv [mailto:Shiv.Venkatraman@broadvision.com]
> Sent: Saturday, May 31, 2003 3:28 AM
> To: 'lucene-user@jakarta.apache.org'
> Subject: API to perform full-text search
>
>
> Which API do I use to perform full-text search? The APIs in
> Javadoc also refer to a field name. In my case, I would like
> to do a search (e.g. "bob") across all documents,
> irrespective of the field name.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: API to perform full-text search
Posted by Anthony Eden <me...@anthonyeden.com>.
Take a look at org.apache.lucene.queryParse.MultiFieldQueryParser. It
allows you to past a list of field names to search on rather than just a
single field name.
Sincerely,
Anthony Eden
Frank Burough wrote:
> I am new to Lucene, and there may be a better way, but I use a field
> 'all' in which I put any and all text that I want to be searchable
> across all fields. This is in addition to the other fields for
> directed searches.
>
> HTH
>
> Frank
>
>
>> -----Original Message----- From: Venkatraman, Shiv
>> [mailto:Shiv.Venkatraman@broadvision.com] Sent: Saturday, May 31,
>> 2003 3:28 AM To: 'lucene-user@jakarta.apache.org' Subject: API to
>> perform full-text search
>>
>>
>> Which API do I use to perform full-text search? The APIs in Javadoc
>> also refer to a field name. In my case, I would like to do a search
>> (e.g. "bob") across all documents, irrespective of the field name.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail:
>> lucene-user-help@jakarta.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org