appendable filed problem

2005-10-29 Thread Riccardo Daviddi
the first "section" field, instead of all the texts, as if they were indexed in the same field "section". Instead, if I try to remove the field "section" it removes correctly all these section fields, as if there was only a single section field. Where am I wrong? -- Riccardo Daviddi University of Siena - Information Engeneering [EMAIL PROTECTED]

Re: appendable filed problem

2005-10-30 Thread Riccardo Daviddi
nt.get(String), or > Document.getField(String) ... try using Document.getValues(String) or > Document.getFields(String). > > > > > -Hoss > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Riccardo Daviddi University of Siena - Information Engeneering [EMAIL PROTECTED]

Add unique id to a doc

2005-07-21 Thread Riccardo Daviddi
re the doc in a db and get so a unique id (the key of the row in the db) and use it as the unique id for the keyword field in the index? -- Riccardo Daviddi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Add unique id to a doc

2005-07-21 Thread Riccardo Daviddi
tis Gospodnetic <[EMAIL PROTECTED]> wrote: > Going the DB way may be safer. > But you could use IndexReader's maxDoc() method to use the other > approach: > http://lucene.apache.org/java/docs/api/org/apache/lucene/index/IndexReader.html#maxDoc() > > Otis > > --- Ric

Re: Add unique id to a doc

2005-07-21 Thread Riccardo Daviddi
Erik > > > On Jul 21, 2005, at 11:53 AM, Riccardo Daviddi wrote: > > > Hi all, > > > > it's possible to set an unique id (as keyword field) to a doc by > > looking in the index? I mean, it's possible to look in the index and > > know what is th

Re: Add unique id to a doc

2005-07-21 Thread Riccardo Daviddi
index. On 7/21/05, Erik Hatcher <[EMAIL PROTECTED]> wrote: > > On Jul 21, 2005, at 3:43 PM, Riccardo Daviddi wrote: > > What I want to to is to assign a unique id to each doc I add to the > > index. > > I was wondering if there is a method to assign a unique id direc

Re: Add unique id to a doc

2005-07-22 Thread Riccardo Daviddi
I 'll take a look at it, thx. On 7/22/05, Peter Friend <[EMAIL PROTECTED]> wrote: > > On Jul 21, 2005, at 8:53 AM, Riccardo Daviddi wrote: > > > it's possible to set an unique id (as keyword field) to a doc by > > looking in the index? I mean, it's

filtering on searching or after through hits?

2005-07-25 Thread Riccardo Daviddi
rough the hits with some conditions? -- Riccardo Daviddi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: filtering on searching or after through hits?

2005-07-25 Thread Riccardo Daviddi
ok:) so I do this "filtering" on the hits. thx On 7/25/05, Erik Hatcher <[EMAIL PROTECTED]> wrote: > > On Jul 25, 2005, at 7:05 AM, Riccardo Daviddi wrote: > > Hi all, > > I have to filter my searching in two ways: > > 1) by score, I want that only docs wi

how to get the snippet?

2005-08-01 Thread Riccardo Daviddi
there is a smarter way to get the snippet? thx in advance! -- Riccardo Daviddi University of Siena - Information Engeneering [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

setBoost(float) in org.apache.lucene.document.Field cannot be applied to (double)???

2005-08-04 Thread Riccardo Daviddi
Why I got this error by writing for example: Field senderNameField = Field.Text("senderName", senderName); Field subjectField = Field.Text("subject", subject); subjectField.setBoost(1.2); as in the manual lucene in action?? 1.2 is a double, but the method wants a float?

Re: setBoost(float) in org.apache.lucene.document.Field cannot be applied to (double)???

2005-08-05 Thread Riccardo Daviddi
hat I do in the code. Any idea? On 8/4/05, Otis Gospodnetic <[EMAIL PROTECTED]> wrote: > Yes. use 1.2f there. That method accepts floats, not doubles. That > could be an error in the Lucene book. > > Otis > > > --- Riccardo Daviddi <[EMAIL PROTECTED]> wrote:

binary of highlighting?

2005-08-07 Thread Riccardo Daviddi
Where can I get the binary of all the classes for highlighting? thx -- Riccardo Daviddi University of Siena - Information Engeneering [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: setBoost(float) in org.apache.lucene.document.Field cannot be applied to (double)???

2005-08-07 Thread Riccardo Daviddi
, not doubles. That > could be an error in the Lucene book. > > Otis > > > --- Riccardo Daviddi <[EMAIL PROTECTED]> wrote: > > > Why I got this error by writing for example: > > > > Field senderNameField = Field.Text("senderName", senderName

Re: setBoost(float) in org.apache.lucene.document.Field cannot be applied to (double)???

2005-08-07 Thread Riccardo Daviddi
ument based boosts (as opposed to > Query boosts) are used at indexing time. > > > > -Hoss > > > ----- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional comm

Re: binary of highlighting?

2005-08-08 Thread Riccardo Daviddi
thank you! On 8/7/05, Erik Hatcher <[EMAIL PROTECTED]> wrote: > > On Aug 7, 2005, at 12:17 PM, Riccardo Daviddi wrote: > > Where can I get the binary of all the classes for highlighting? > > There have never been any official releases of the Sandbox/contrib > piec

Re: setBoost(float) in org.apache.lucene.document.Field cannot be applied to (double)???

2005-08-11 Thread Riccardo Daviddi
from IndexReader.document(int) and Hits.doc > (int) may thus not have the same value present as when this field was > indexed." > > HTH > Stefan > > > Am 07.08.2005 um 19:05 schrieb Riccardo Daviddi: > > > I don't know where I am wrong... > >

How to get a list of field names of one doc?

2005-09-10 Thread Riccardo Daviddi
a document all the field names the doc has? thx -- Riccardo Daviddi University of Siena - Information Engeneering [EMAIL PROTECTED]

Re: How to get a list of field names of one doc?

2005-09-12 Thread Riccardo Daviddi
together). > > By now I am getting all the fields of an index by the > > IndexReader.getFieldNames() method and then manually testing if the > > document > > has each field. There is another way to know