Re: How do I obtain the document id in order to delete from index?

2006-10-30 Thread Enrique Lamas
I think I found it. I must do a query an then loop through the hits to obtain the id with hit.id(int n). If anyone knows any better way... Thanks - Original Message - From: "Enrique Lamas" <[EMAIL PROTECTED]> To: Sent: Monday, October 30, 2006 11:39 AM Subject:

How do I obtain the document id in order to delete from index?

2006-10-30 Thread Enrique Lamas
Hi, I've been reading Lucene documentation and I see there are two ways of deleting a document from an index: by id and by term. Supose I have an index with three fields: field1, field2 and field3, and I want to delete all documents with field1=value1 and field2=value2. I think I must use deleti

Re: I need your opinion about working with big index and frecuently updates

2006-10-03 Thread Enrique Lamas
me timings. I've noticed that when creating an index, the optimize step is a long one. Hope this helps Erick P.S. Your English is waaay better than my ... well... any other language . On 10/3/06, Enrique Lamas <[EMAIL PROTECTED]> wrote: Hi, I'm working with a 100Mb le

I need your opinion about working with big index and frecuently updates

2006-10-03 Thread Enrique Lamas
Hi, I'm working with a 100Mb length index. By application requirements, the information indexed is frecuently updated, with plenty of modifications, deletions and additions. I think Lucene is a very powerful searching tool once the index is already created, but I'm not sure if update index frec

Re: custom sort

2006-08-10 Thread Enrique Lamas
t the search.explain output for your searches to understand how your changes affect things. : Date: Wed, 9 Aug 2006 13:46:30 +0200 : From: Enrique Lamas <[EMAIL PROTECTED]> : Reply-To: java-user@lucene.apache.org : To: java-user@lucene.apache.org : Subject: custom sort : : Hi, : I wan

custom sort

2006-08-09 Thread Enrique Lamas
Hi, I want to execute a query searching a few terms QueryParser queryParser = new MultiFieldQueryParser(new String[] {"tags", "title"}, ProcessConstants.analyzer); Query query = queryParser.parse("rocio ortega"); and I want to obtain the results sorted by the number of founded terms, but not c

lengthNorm method of Similarity not beeing called

2006-08-07 Thread Enrique Lamas
Hi, I want to execute a query and sort the results in a special way. Seeing the Explanation info returned, I've decided to alter the value that at Explanation is given as fieldNorm. Searching at this maillist, I found this post: http://www.mail-archive.com/java-user@lucene.apache.org/msg03304.htm

Re: queryParser and sorting question

2006-07-25 Thread Enrique Lamas
n will help you check that you get consistent scores in all of your potential cases. : Date: Mon, 24 Jul 2006 15:19:32 +0200 : From: Enrique Lamas <[EMAIL PROTECTED]> : Reply-To: java-user@lucene.apache.org : To: java-user@lucene.apache.org : Subject: queryParser and sorting question : : Hi,

queryParser and sorting question

2006-07-24 Thread Enrique Lamas
Hi, I'm, trying to execute a query to find some words, and I'm using QueryParser queryParser = new MultiFieldQueryParser(new String[] {"tags", "title"}, ProcessConstants.analyzer); Query query = queryParser.parse("word1 word2 word3"); I want to show the results sorted like this: first, docume

Problem with reverse ordering

2006-02-27 Thread Enrique Lamas
Hi, I have an index with some fields, one of them is a String representing a date in the format MMddHHmmss. I store this field as a Keyword to be sortable. My problem is that I obtain the results in the same order with Hits hits = is.search(query, new Sort("formatted-date")); than Hits hits