lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Giles <mgi...@visionstudio.com>
Subject RE: Returning one result
Date Fri, 05 Dec 2003 20:31:15 GMT
Tracy,

I believe what Dror was referring to was the call to 
MultiFieldQueryParser.parse(). The second argument to that call is a 
String[] of field names on which to execute the query.  If the field that 
contains "AR345" isn't listed in that array, you will not get any results.

-Mike

At 03:14 PM 12/5/2003, you wrote:
>What do you mean 'add' in MultiFieldQueryParser?  I am using all the
>fields
>
>When I index it does
>
>  add (Field.Keyword(..,..))
>
>
>But I don't want the user to have to type ID:<ID NUMBER> It would be
>nice to just type ID Number. On your site if you just put: 11183 in the
>search box there are no results.
>
>well, right now I'll just do it as text and query that field for the id
># to display the document.  It can't hurt, right? :)  Unless the Keyword
>is a better way
>
>
>
>-



---------------------------------------------------------------------
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