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) <r...@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 > > >