Hi Sabarish The GitHub issue you've come across covers exactly what you'll need to do - separate indices defined with unique names, one with the stemming settings, the other without, with appropriate fields for each. Attributes will need to be repeated across both, though.
Cheers -- Pat On 26 Jun 2014, at 12:40 pm, Sabarish Sankar <[email protected]> wrote: > I diagnosed that the problem has to do with the stop words combined with > stemming.The stop word - 'Nine' combined with stemming caused the issue. > > Is there a way we can ignore stop words on a particular fields alone like > first_name, last_name and email ? Here is the related post I see - > https://github.com/pat/thinking-sphinx/issues/580 and is this the way to go > with in case we want to ignore stop words for name and email attributes alone > and not on other attributes and models? Thanks. > > > Regards, > Sabarish S > > > On Tue, Jun 24, 2014 at 1:20 PM, Sabarish Sankar > <[email protected]> wrote: > Hi Pat, > > We have an issue using a particular word for search. We have a member named > 'Nina Parez'. When we do, > > Member.search("Nina") > > It returns the entire set of members in the system and not just the ones that > matches. It works fine for other words. > > Here is how the member index looks like > > ThinkingSphinx::Index.define :member, with: :active_record, delta: > ThinkingSphinx::Deltas::DelayedDelta do > indexes [first_name, last_name], as: :name > indexes first_name > indexes last_name > indexes email, sortable: true > indexes state, sortable: true > set_property enable_star: 1 > set_property min_prefix_len: 3 > end > > Does it have anything to do with the word? Thanks for your help! > > Regards, > Sabarish S > > > -- > 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/d/optout. -- 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/d/optout.
