lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rode González (libnova) <r...@libnova.es>
Subject RE: how to implemente a query like " like '%pattern%' "
Date Tue, 27 Sep 2011 08:39:39 GMT
Hola Tomás.

it seems that yes, using q = "word1 word2" over a tokenized field, it seems to
work. I will do some additional testing.

thanks a lot,

rode.


> -----Mensaje original-----
> De: Tomás Fernández Löbbe [mailto:tomasflobbe@gmail.com]
> Enviado el: lunes, 26 de septiembre de 2011 22:12
> Para: solr-user@lucene.apache.org
> Asunto: Re: how to implemente a query like " like '%pattern%' "
> 
> If you need those kinds of searches then you should probably not be using
> the KeywordTokenizerFactory, is there any reason why you can't switch to a
> WhitespaceTokenizer for example? then you could use a simple phrase query
> for your search case. if you need everything as a Token, you could use a
> copyfield and duplicate the field and have them both.
> 
> Are those acceptable options for you?
> 
> Tomás
> 
> 2011/9/26 Rode González (libnova) <rode@libnova.es>
> 
> > Hi all.
> >
> > how can we do a query similar to 'like' ?
> >
> >
> > if I have this phrase like a single token in the index: "This phrase has
> > various words" (using KeywordTokenizerFactory)
> > and i like a exact match of:  "phrase has various" or "various words"
> form
> > instance...
> >
> > How can i do this??
> >
> > Thanks a lot.
> >
> > Rode.
> >
> >
> > -----
> > No se encontraron virus en este mensaje.
> > Comprobado por AVG - www.avg.com
> > Versión: 10.0.1410 / Base de datos de virus: 1520/3920 - Fecha de
> > publicación: 09/26/11
> >
> >
> >
> 
> -----
> No se encontraron virus en este mensaje.
> Comprobado por AVG - www.avg.com
> Versión: 10.0.1410 / Base de datos de virus: 1520/3920 - Fecha de
> publicación: 09/26/11

-----
No se encontraron virus en este mensaje.
Comprobado por AVG - www.avg.com
Versión: 10.0.1410 / Base de datos de virus: 1520/3921 - Fecha de publicación:
09/26/11



Mime
View raw message