Re: tag search

2008-10-24 Thread Borja Martín
to add multiple untokenized fields named 'tag', each holding one tag. Regards, Daan -Original Message- From: Borja Martín [mailto:[EMAIL PROTECTED] Sent: vrijdag 24 oktober 2008 12:59 To: java-user@lucene.apache.org Subject: tag search Hi, I want to index a document that h

Re: tag search

2008-10-24 Thread Grant Ingersoll
You either need to write a tokenizer that breaks on comma or you can do as Daan suggested. On Oct 24, 2008, at 6:58 AM, Borja Martín wrote: Hi, I want to index a document that has a field called 'tags' that looks like that : 'foo, foo bar' The comma is the separator for each tag, so I have a

Re: tag search

2008-10-24 Thread Borja Martín
rja Martín [mailto:[EMAIL PROTECTED] Sent: vrijdag 24 oktober 2008 12:59 To: java-user@lucene.apache.org Subject: tag search Hi, I want to index a document that has a field called 'tags' that looks like that : 'foo, foo bar' The comma is the separator for each tag, so I have

RE: tag search

2008-10-24 Thread Daan de Wit
Hi Borja, Try to add multiple untokenized fields named 'tag', each holding one tag. Regards, Daan > -Original Message- > From: Borja Martín [mailto:[EMAIL PROTECTED] > Sent: vrijdag 24 oktober 2008 12:59 > To: java-user@lucene.apache.org > Subject: tag search &

tag search

2008-10-24 Thread Borja Martín
Hi, I want to index a document that has a field called 'tags' that looks like that : 'foo, foo bar' The comma is the separator for each tag, so I have a tag with the value 'foo' and another one with 'foo bar' What I want to do is to be able to retrieve the documents with certain tag(only one tag p