RE: Multiple Fields with same name
I have not tried it -- Are there examples on the Lucene book? (I just bought the book and cant find thats related to my problem) Thanks, Ramon -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Friday, February 11, 2005 7:34 AM To: Lucene Users List Subject: Re: Multiple Fields with same name On Feb 10, 2005, at 11:48 PM, Ramon Aseniero wrote: If I store multiple fields with same name for example Author with 3 values bob,jane,bill once I retrieve the doc are the values in the same order? Did you try it? :) Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 2/10/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 2/10/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sorting in Lucene
Hi Erik, I am not getting any error. Yes I am indexing multiple keyword fields by the same name in a single document. Does that works with Lucene? Thanks, Ramon -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 5:13 PM To: Lucene Users List Subject: Re: Sorting in Lucene Ramon, More details would be most helpful in being able to assist. You said you cannot sort - but you did not tell us what error you're getting. Are you indexing multiple keyword fields by the same name for a single document? As for searching - depending on the type of text you're searching for, the analyzer may be making it difficult/impossible to search for. QueryParser doesn't know about keyword fields. Erik On Dec 7, 2004, at 7:13 PM, Ramon Aseniero wrote: Hi Chuck, Yes I tried to search with the exact string stored on the index but I don't get a match. I tried the search using LIMO and LUKE. It seems like untokenized field are not searchable. Thanks, Ramon -Original Message- From: Chuck Williams [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 4:04 PM To: Lucene Users List Subject: RE: Sorting in Lucene Since it's untokenized, are you searching with the exact string stored in the field? Chuck -Original Message- From: Ramon Aseniero [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:29 PM To: 'Lucene Users List'; 'Chris Fraschetti' Subject: RE: Sorting in Lucene I also tried searching the said field on LIMO and I don't get a match. Thanks, Ramon -Original Message- From: Ramon Aseniero [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:20 PM To: 'Lucene Users List'; 'Chris Fraschetti' Subject: RE: Sorting in Lucene Hi, I use LIMO to look into my index. Limo tells me that the field is untokenized but is indexed. Is it possible to search on untokenized field? Thanks, Ramon -Original Message- From: Chris Fraschetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:14 PM To: Lucene Users List Subject: Re: Sorting in Lucene I would try 'luke' to look at your index and use it's search functionality to make sure it's now your code that is the problem, as well as to ensure your document is appearing in the index as you intend it. It's been a lifesaver for me. http://www.getopt.org/luke/ On Tue, 7 Dec 2004 15:02:26 -0800, Ramon Aseniero [EMAIL PROTECTED] wrote: Hi All, Any idea why a Keyword field is not searchable? On my index I have a field of type Keyword but I could not somehow search on the field. Thanks in advance. Ramon -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 -- ___ Chris Fraschetti e [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 -- No virus found in this outgoing message
Conditional Operator in Lucene
Hi All, Does Lucene support conditional operator? Like retrieve all documents where age is greater than 21, how do I compose a query like this in Lucene is there a different Query object to use? Thanks, Ramon -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
Sorting in Lucene
Hi All, Any idea why a Keyword field is not searchable? On my index I have a field of type Keyword but I could not somehow search on the field. Thanks in advance. Ramon -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
RE: Sorting in Lucene
Hi, I use LIMO to look into my index. Limo tells me that the field is untokenized but is indexed. Is it possible to search on untokenized field? Thanks, Ramon -Original Message- From: Chris Fraschetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:14 PM To: Lucene Users List Subject: Re: Sorting in Lucene I would try 'luke' to look at your index and use it's search functionality to make sure it's now your code that is the problem, as well as to ensure your document is appearing in the index as you intend it. It's been a lifesaver for me. http://www.getopt.org/luke/ On Tue, 7 Dec 2004 15:02:26 -0800, Ramon Aseniero [EMAIL PROTECTED] wrote: Hi All, Any idea why a Keyword field is not searchable? On my index I have a field of type Keyword but I could not somehow search on the field. Thanks in advance. Ramon -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 -- ___ Chris Fraschetti e [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sorting in Lucene
I also tried searching the said field on LIMO and I dont get a match. Thanks, Ramon -Original Message- From: Ramon Aseniero [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:20 PM To: 'Lucene Users List'; 'Chris Fraschetti' Subject: RE: Sorting in Lucene Hi, I use LIMO to look into my index. Limo tells me that the field is untokenized but is indexed. Is it possible to search on untokenized field? Thanks, Ramon -Original Message- From: Chris Fraschetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:14 PM To: Lucene Users List Subject: Re: Sorting in Lucene I would try 'luke' to look at your index and use it's search functionality to make sure it's now your code that is the problem, as well as to ensure your document is appearing in the index as you intend it. It's been a lifesaver for me. http://www.getopt.org/luke/ On Tue, 7 Dec 2004 15:02:26 -0800, Ramon Aseniero [EMAIL PROTECTED] wrote: Hi All, Any idea why a Keyword field is not searchable? On my index I have a field of type Keyword but I could not somehow search on the field. Thanks in advance. Ramon -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 -- ___ Chris Fraschetti e [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sorting in Lucene
Hi Chuck, Yes I tried to search with the exact string stored on the index but I don't get a match. I tried the search using LIMO and LUKE. It seems like untokenized field are not searchable. Thanks, Ramon -Original Message- From: Chuck Williams [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 4:04 PM To: Lucene Users List Subject: RE: Sorting in Lucene Since it's untokenized, are you searching with the exact string stored in the field? Chuck -Original Message- From: Ramon Aseniero [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:29 PM To: 'Lucene Users List'; 'Chris Fraschetti' Subject: RE: Sorting in Lucene I also tried searching the said field on LIMO and I don't get a match. Thanks, Ramon -Original Message- From: Ramon Aseniero [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:20 PM To: 'Lucene Users List'; 'Chris Fraschetti' Subject: RE: Sorting in Lucene Hi, I use LIMO to look into my index. Limo tells me that the field is untokenized but is indexed. Is it possible to search on untokenized field? Thanks, Ramon -Original Message- From: Chris Fraschetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:14 PM To: Lucene Users List Subject: Re: Sorting in Lucene I would try 'luke' to look at your index and use it's search functionality to make sure it's now your code that is the problem, as well as to ensure your document is appearing in the index as you intend it. It's been a lifesaver for me. http://www.getopt.org/luke/ On Tue, 7 Dec 2004 15:02:26 -0800, Ramon Aseniero [EMAIL PROTECTED] wrote: Hi All, Any idea why a Keyword field is not searchable? On my index I have a field of type Keyword but I could not somehow search on the field. Thanks in advance. Ramon -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 -- ___ Chris Fraschetti e [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best Implementation of Next and Prev in Lucene
Hi All, What's the best implementation of displaying the Next and Prev search result in Lucene? Thanks, Ramon
IndexSearch
Hi All, Can IndexSearcher be persisted? Are there any limitations on index updates while searches are in progress? Any file locking issues? Thanks, Ramon
Highlighting in Lucene
Hi All, I would like to know if Lucene support highlighting on the searched text? Thanks in advance. Thanks, Ramon Aseniero
RE: Highlighting in Lucene
Hi Will, Thanks a lot that really helps. Thanks, Ramon -Original Message- From: Will Allen [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 12:45 PM To: Lucene Users List Subject: RE: Highlighting in Lucene There is a highlighting tool in the sandbox (3/4 of the way down): http://jakarta.apache.org/lucene/docs/lucene-sandbox/ -Original Message- From: Ramon Aseniero [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 3:40 PM To: 'Lucene Users List' Subject: Highlighting in Lucene Hi All, I would like to know if Lucene support highlighting on the searched text? Thanks in advance. Thanks, Ramon Aseniero - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sorting in Lucene.
Hi All, Does Lucene supports sorting on the search results? Thanks in advance. Ramon
RE: Sorting in Lucene.
Hi Chuck, Can you please point me to some articles or FAQ about Sorting in Lucene? Thanks a lot for your reply. Thanks, Ramon -Original Message- From: Chuck Williams [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 9:44 PM To: Lucene Users List Subject: RE: Sorting in Lucene. Yes, by one or multiple criteria. Chuck -Original Message- From: Ramon Aseniero [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 6:21 PM To: 'Lucene Users List' Subject: Sorting in Lucene. Hi All, Does Lucene supports sorting on the search results? Thanks in advance. Ramon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sorting in Lucene.
Hi chuck, Thanks a lot this is really helpful. Thanks, Ramon -Original Message- From: Chuck Williams [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 10:05 PM To: Lucene Users List Subject: RE: Sorting in Lucene. Ramon, I'm not sure where a guide or tutorial might be, but you should be able to see how to do it from the javadoc. Look at classes Sort, SortField, SortComparator. I've also included a recent message from this group below concerning sorting with multiple fields. FYI, a number of people have wanted to first sort by score and secondarily by another field. This is tricky since scores are frequently different in low-order decimal positions. Good luck, Chuck -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 1:33 AM To: Lucene Users List Subject: Re: sorting by score and an additional field On Nov 3, 2004, at 9:52 PM, Chris Fraschetti wrote: Has anyone had any luck using lucene's built in sort functions to sort first by the lucene hit score and secondarily by a Field in each document indexed as Keyword and in integer form? I get multiple sort fields to work, here's two examples: new Sort(new SortField[]{ new SortField(category), SortField.FIELD_SCORE, new SortField(pubmonth, SortField.INT, true) }); new Sort(new SortField[] {SortField.FIELD_SCORE, new SortField(category)}) Both of these, on a tiny dataset of only 10 documents, works exactly as expected. I can only get it to sort by one or the other... but when it does one, it does sort correctly, but together in {score, custom_field} only the first sort seems to apply. Any ideas? Are you using Lucene 1.4.2? How did you index your integer field? Are you simply using the .toString() of an Integer? Or zero padding the field somehow? You can use the .toString method, but you have to be sure that the sorting code does the right parsing of it - so you might need to specify SortField.INT as its type. It will do automatic detection if the type is not specified, but that assumes that the first document it encounters parses properly, otherwise it will fall back to using a String sort. Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -Original Message- From: Ramon Aseniero [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 9:53 PM To: 'Lucene Users List' Subject: RE: Sorting in Lucene. Hi Chuck, Can you please point me to some articles or FAQ about Sorting in Lucene? Thanks a lot for your reply. Thanks, Ramon -Original Message- From: Chuck Williams [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 9:44 PM To: Lucene Users List Subject: RE: Sorting in Lucene. Yes, by one or multiple criteria. Chuck -Original Message- From: Ramon Aseniero [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 6:21 PM To: 'Lucene Users List' Subject: Sorting in Lucene. Hi All, Does Lucene supports sorting on the search results? Thanks in advance. Ramon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]