Hi Chris, thanks for your reply and sorry for my poor explained question.

Here are some examples of indexed data (fieldname:propertyType):

Apartamento Padrão
Casa Padrão
Loft
Terreno

And some examples of the queries

propertyType:"Apartamento Padrão"
propertyType:"apartamento-padrao"
propertyType:"Loft"
propertyType:"loft"

Using the analysis menu, I can see that the difference is in the double
quotes I'm providing when I search and that are not indexed.

How can I solve this?

Thanks



*----------------------------------------------------------------------------------------------*
*"E conhecereis a verdade, e a verdade vos libertará." (João 8:32)*

 *andre.maldonado*@gmail.com <andre.maldon...@gmail.com>
 (11) 9112-4227

<http://www.orkut.com.br/Main#Profile?uid=2397703412199036664>
<http://www.facebook.com/profile.php?id=100000659376883>
<http://twitter.com/andremaldonado>
  <https://profiles.google.com/105605760943701739931>
<http://www.linkedin.com/pub/andr%C3%A9-maldonado/23/234/4b3>
  <http://www.youtube.com/andremaldonado>



On Fri, Jan 3, 2014 at 9:15 PM, Chris Hostetter <hossman_luc...@fucit.org>wrote:

>
> Can you show us examples of the types of data you are indexing, and the
> types of queries you want to match? (as well as examples of queries you
> *don't* want to match)
>
>
> https://wiki.apache.org/solr/UsingMailingLists#Information_useful_for_searching_problems
>
> Best guess, based on your problem description, is that you are indexing
> text like "Foo Bar" and then searching for things like "foO    BaR" and
> you want those to match.
>
> With your analyzer as it is, you will never get a match unless the client
> sending hte query string has already lowercased it, done any asciifolding
> needed, and always sends "-" instead of space characters.
>
> i suspect what you really want is to have index & query analyzers that are
> the same (or at least better matches for exachother then what you have
> below)...
>
>
> : Hi,
> :
> : Is there a way to do an exact match search on a tokenized field?
> :
> : I have a scenario which i need a field to be indexed and searchable
> : regardless of the case or white spaces used. For this, I created a custom
> : field type with the following configuration:
> :
> : <field name="propertyType" type="customtype" indexed="true"
> stored="true" />
> :
> : <fieldType name="customtype" class="solr.TextField"
> : positionIncrementGap="100">
> : <analyzer type="index">
> : <tokenizer class="solr.KeywordTokenizerFactory"/>
> : <filter class="solr.ASCIIFoldingFilterFactory"/>
> : <filter class="solr.LowerCaseFilterFactory"/>
> : <filter class="solr.PatternReplaceFilterFactory" pattern=" "
> : replacement="-"/>
> :       </analyzer>
> :       <analyzer type="query">
> : <tokenizer class="solr.KeywordTokenizerFactory"/>
> :       </analyzer>
> : </fieldType>
> :
> : Even using KeywordTokenizerFactory on both index and query, all my
> searchs
> : based on exact match stopped working.
> :
> : Is there a way to search exact match like a string field and at the same
> : time use customs tokenizers aplied to that field?
> :
> : Thank's in advance
> :
> :
> :
> *----------------------------------------------------------------------------------------------*
> : *"E conhecereis a verdade, e a verdade vos libertará." (João 8:32)*
> :
> :  *andre.maldonado*@gmail.com <andre.maldon...@gmail.com>
> :  (11) 9112-4227
> :
> : <http://www.orkut.com.br/Main#Profile?uid=2397703412199036664>
> : <http://www.facebook.com/profile.php?id=100000659376883>
> : <http://twitter.com/andremaldonado>
> :   <https://profiles.google.com/105605760943701739931>
> : <http://www.linkedin.com/pub/andr%C3%A9-maldonado/23/234/4b3>
> :   <http://www.youtube.com/andremaldonado>
> :
>
> -Hoss
> http://www.lucidworks.com/

Reply via email to