lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daan de Wit" <d.de....@wis.nl>
Subject RE: tag search
Date Fri, 24 Oct 2008 11:55:32 GMT
Hi Borja,

Try to add multiple untokenized fields named 'tag', each holding one tag.

Regards,
Daan

> -----Original Message-----
> From: Borja Martín [mailto:borjam@dagi3d.net]
> 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 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 per query), so if I search by 'foo', this document
> should be hit, as well as if I search by 'foo bar', but if I enter 'bar'
> as the tag, it shouldn't although it is being retrieved too. I tried to
> index the field as keyword and as text(I know so it's tokenized so it
> shouldn't work at all) and tried several queries with no success. Any
> tip to achieve what I want? Should I write my own analyzer?
> Thanks in advance.
> 
> Regards
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message