Re: Returning one result

2003-12-05 Thread Dror Matalon
On Fri, Dec 05, 2003 at 05:28:54PM -0500, Erik Hatcher wrote: > On Friday, December 5, 2003, at 04:28 PM, Dror Matalon wrote: > >Then I'm out of ideas. The next thing is for you to post your search > >code so we can see why it's not searching the field. > > Giving up so easily, Dror?! :)) You'

Re: Returning one result

2003-12-05 Thread Erik Hatcher
On Friday, December 5, 2003, at 04:28 PM, Dror Matalon wrote: Then I'm out of ideas. The next thing is for you to post your search code so we can see why it's not searching the field. Giving up so easily, Dror?! :)) The problem is, when using any type of QueryParser with a Keyword field, you h

Re: Returning one result

2003-12-05 Thread Dror Matalon
gt; From: Dror Matalon [mailto:[EMAIL PROTECTED] > Sent: Friday, December 05, 2003 3:32 PM > To: Lucene Users List > Subject: Re: Returning one result > > > > On Fri, Dec 05, 2003 at 03:14:08PM -0500, Pleasant, Tracy wrote: > > What do you mean 'add' in MultiF

RE: Returning one result

2003-12-05 Thread Pleasant, Tracy
Yes it is in the list of arrays that I want searched. -Original Message- From: Dror Matalon [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 3:32 PM To: Lucene Users List Subject: Re: Returning one result On Fri, Dec 05, 2003 at 03:14:08PM -0500, Pleasant, Tracy wrote: > W

Re: Returning one result

2003-12-05 Thread Dror Matalon
Mike, Boy, I said it so badly and yet you understood :-). Dror On Fri, Dec 05, 2003 at 03:31:15PM -0500, Michael Giles wrote: > 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

Re: Returning one result

2003-12-05 Thread Dror Matalon
- > From: Dror Matalon [mailto:[EMAIL PROTECTED] > Sent: Friday, December 05, 2003 3:06 PM > To: Lucene Users List > Subject: Re: Returning one result > > > On Fri, Dec 05, 2003 at 02:45:34PM -0500, Pleasant, Tracy wrote: > > Maybe we are having some communication issues

RE: Returning one result

2003-12-05 Thread Michael Giles
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

RE: Returning one result

2003-12-05 Thread Pleasant, Tracy
PM To: Lucene Users List Subject: Re: Returning one result On Fri, Dec 05, 2003 at 02:45:34PM -0500, Pleasant, Tracy wrote: > Maybe we are having some communication issues. > > At any rate, I did index it as a KEYWORD and when displaying used the > TermQuery. > > The only problem

Re: Returning one result

2003-12-05 Thread Dror Matalon
() of the field for AR345 which is why the search fails. Regards, Dror > > > > -Original Message- > From: Erik Hatcher [mailto:[EMAIL PROTECTED] > Sent: Friday, December 05, 2003 2:13 PM > To: Lucene Users List > Subject: Re: Returning one result > > >

RE: Returning one result

2003-12-05 Thread Pleasant, Tracy
x27;t searched. -Original Message- From: Dror Matalon [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 2:14 PM To: Lucene Users List Subject: Re: Returning one result On Fri, Dec 05, 2003 at 01:25:23PM -0500, Pleasant, Tracy wrote: > What I meant is. > > Say ID is Ar34

RE: Returning one result

2003-12-05 Thread Pleasant, Tracy
. *sigh* *arg* -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 2:13 PM To: Lucene Users List Subject: Re: Returning one result On Friday, December 5, 2003, at 01:25 PM, Pleasant, Tracy wrote: > Say ID is Ar3453 .. well the user may want

Re: Returning one result

2003-12-05 Thread Dror Matalon
ent: Friday, December 05, 2003 11:32 AM > To: Lucene Users List > Subject: Re: Returning one result > > > On Friday, December 5, 2003, at 10:41 AM, Pleasant, Tracy wrote: > > Maybe I should have been more clear. > > > > static Field Keyword(String name, Strin

Re: Returning one result

2003-12-05 Thread Erik Hatcher
On Friday, December 5, 2003, at 01:25 PM, Pleasant, Tracy wrote: Say ID is Ar3453 .. well the user may want to search for Ar3453, so in order for it to be searchable then it would have to be indexed and not a keyword. *arg* - we're having a serious communication issue here. My advice to you is

RE: Returning one result

2003-12-05 Thread Pleasant, Tracy
; How would I return the other fields in the document? For instance to display a record it would get the record with the id # and then display the title, contents, etc. -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 11:32 AM To: Lucene

RE: Returning one result

2003-12-05 Thread Pleasant, Tracy
e document? For instance to display a record it would get the record with the id # and then display the title, contents, etc. -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 11:32 AM To: Lucene Users List Subject: Re: Returning one result

Re: Returning one result

2003-12-05 Thread Erik Hatcher
On Friday, December 5, 2003, at 10:41 AM, Pleasant, Tracy wrote: Maybe I should have been more clear. static Field Keyword(String name, String value) Constructs a String-valued Field that is not tokenized, but is indexed and stored. I need to have it tokenized because people will sear

Re: Returning one result

2003-12-05 Thread Erik Hatcher
, but it is not used for Field.Keyword. Please provide more details on the issue you encountered using Field.Keyword. -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 6:18 PM To: Lucene Users List Subject: Re: Returning one result You really

RE: Returning one result

2003-12-05 Thread Pleasant, Tracy
Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 6:18 PM To: Lucene Users List Subject: Re: Returning one result You really should use a TermQuery in this case anyway, rather than using QueryParser. You wouldn't have to worry about the analyz

RE: Returning one result

2003-12-05 Thread Pleasant, Tracy
List Subject: Re: Returning one result You really should use a TermQuery in this case anyway, rather than using QueryParser. You wouldn't have to worry about the analyzer at that point anyway (and I assume you're using Field.Keyword during indexing). Erik On Thursday, December

RE: Returning one result

2003-12-05 Thread Pleasant, Tracy
Ok thanks, but still I can't use the Simple analyzer since it won't even index that whole thing. I 'll give TermQuery a try. Thanks. -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 6:18 PM To: Lucene Users List Subject: Re

Re: Returning one result

2003-12-04 Thread Erik Hatcher
You really should use a TermQuery in this case anyway, rather than using QueryParser. You wouldn't have to worry about the analyzer at that point anyway (and I assume you're using Field.Keyword during indexing). Erik On Thursday, December 4, 2003, at 05:01 PM, Pleasant, Tracy wrote: Ok I r

RE: Returning one result

2003-12-04 Thread Pleasant, Tracy
Ok I realized teh Simple Analyzer does not index numbers, so I switched back to Standard. -Original Message- From: Pleasant, Tracy Sent: Thursday, December 04, 2003 4:53 PM To: Lucene Users List Subject: Returning one result I am indexing a group of items and one field , id, is unique.