Hi Mark As far as I know, such an approach isn’t possible with Sphinx - each word gets fed through the indexing process separately. If index size/search speed is a concern, you can apply prefixing to certain indices or fields, but customising length on a per-field basis is not possible.
If you only want indexing enabled for specific indices, put something like the following within the index definition block: set_property :min_prefix_len => 3 If you only want certain fields, then *add* the following option to the fields within an index definition block (min_prefix_len is required either in the definition or in config/thinking_sphinx.yml): indexes name, :prefixes => true But yeah, to come back to the question you actually asked: pretty sure it’s not possible, though people on the Sphinx forum could certainly know tricks I don’t - http://sphinxsearch.com/forum/index.html Cheers — Pat On 1 Jan 2014, at 5:57 pm, Mark Thomson <[email protected]> wrote: > I have prefix matching set up with min_prefix_len = 3. > > Search term "Inter" matches "International Trade", as does 'International'. > However 'International Tr' does not. So it seems that the prefix length is > applied on a word by word basis, not to the phrase as a whole. > > Is there any way around this? > > Mark > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/thinking-sphinx. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/thinking-sphinx. For more options, visit https://groups.google.com/groups/opt_out.
