Thanks Pat. I came to the conclusion that I didn't really have a good 
reason to make min_prefix_length > 1 for my current task. However knowing I 
can set this on a per-model basis is extremely helpful as I'm anticipating 
a need for additional search tasks within my current application.

Mark.


On Wednesday, January 1, 2014 1:14:10 AM UTC-6, Pat Allan wrote:
>
> 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] <javascript:>> 
> 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] <javascript:>.
> To post to this group, send email to [email protected]<javascript:>
> .
> 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.

Reply via email to