lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomás Fernández Löbbe <tomasflo...@gmail.com>
Subject Re: how to implemente a query like " like '%pattern%' "
Date Mon, 26 Sep 2011 20:12:05 GMT
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
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message