If you still need the standard analyzer's behavior for words but want to force separation on stuff containing dots and underscores you can use the mapper character filter ( http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-mapping-charfilter.html) to convert those characters to spaces. Its pretty crude but it should work. You can also use the word delimiter token filter ( http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-word-delimiter-tokenfilter.html) but it has more weird corner cases.
Nik On Tue, Oct 7, 2014 at 12:55 PM, Ivan Brusic <i...@brusic.com> wrote: > Your issue is with the standard tokenizer, which will tokenize on most non > word characters. > > Try using a whitespace or pattern tokenizer, which is dependent on your > use case. > > -- > Ivan > On Oct 7, 2014 7:24 AM, "Radim Bukovský" <rad.bukov...@seznam.cz> wrote: > >> Hi, >> I am not sure if I understand what do you think. Could you be more >> specific? Many thanks. >> >> Settings: >> >> setFields(array('name^3', 'description')); ------------------> >> ('fields') >> setQuery($search . ' extension:('.$filter.')'); -------------------> >> ('query') >> setDefaultOperator('AND'); ------------------> >> ('default_operator') >> >> There is list of all parameters if helps: >> >> 'allow_leading_wildcard' ------------> true >> 'enable_position_increments' -------> true >> 'lowercase_expanded_terms' -------> true >> 'fuzzy_prefix_length' ---------> 0 >> 'fuzzy_min_sim' ---------> 0.5 >> 'phrase_slop' ---------> 0 >> 'boost' --------> 1.0 >> 'analyze_wildcard' ----------> true >> 'auto_generate_phrase_queries' ------------ > true >> 'use_dis_max' ----> true >> 'tie_breaker' ------> 0 >> 'rewrite' -----------> "" >> >> >> >> Regards, >> Radim >> >> -- >> You received this message because you are subscribed to the Google Groups >> "elasticsearch" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to elasticsearch+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elasticsearch/0c3f9aff-2971-49c2-afc5-d1054d1068fe%40googlegroups.com >> <https://groups.google.com/d/msgid/elasticsearch/0c3f9aff-2971-49c2-afc5-d1054d1068fe%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to elasticsearch+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCU-%3DxwRxsdHREWh59kp_wJhdHbRosK8Co9njLhgR%2BZbQ%40mail.gmail.com > <https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCU-%3DxwRxsdHREWh59kp_wJhdHbRosK8Co9njLhgR%2BZbQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPmjWd3-RBLstc0adGt9KyHzc%3DRWnAHP2LNN%2Bv-psbHDZAtO_w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.