Hi Seb, No need to apologise for the French! :)
You’ll likely need either min_infix_len or min_prefix_len set in config/thinking_sphinx.yml to ensure parts of words are indexed alongside full words: https://freelancing-gods.com/thinking-sphinx/v4/advanced_config.html#infix-and-prefix-indexing <https://freelancing-gods.com/thinking-sphinx/v4/advanced_config.html#infix-and-prefix-indexing> Walter’s suggestion about stemming is a good one, but I think stemming - for any language - is going to focus on a standard dictionary, rather than proper names? I’m not sure though, perhaps it takes a more general approach. https://freelancing-gods.com/thinking-sphinx/v4/advanced_config.html#word-stemming--morphology <https://freelancing-gods.com/thinking-sphinx/v4/advanced_config.html#word-stemming--morphology> After changing any of these settings, you’ll need to rebuild your index to have the changes applied to Sphinx. Give that a shot - in particular, the infix/prefix setting - and let us know if the problem persists! Cheers, — Pat > On 17 Aug 2019, at 12:16 am, Walter Lee Davis <[email protected]> wrote: > > I wonder if there’s some configuration needed to set the stemming language? > That’s just a guess. > > Walter > > On Aug 16, 2019, at 8:42 AM, Seb A. <[email protected] > <mailto:[email protected]>> wrote: > >> Hi ! >> >> I'm stuck on a simple case and I can't really know why it doesn't work as >> expected. >> >> I'm using a 5.2 rails app with TS 4.3.2 and Sphinx 3.1. >> >> For my blog, here : https://milesandlove.com/photos >> <https://milesandlove.com/photos>, I'm indexing about 6000 images with only >> one field which is basically a concatenate of some fields : >> >> ThinkingSphinx::Index.define :image, :with => :real_time do >> indexes searchable >> has rank, :type => :integer, :as => :rank_sort >> end. >> >> >> Got a searchable method in my image.rb model as follow : >> >> def searchable >> [title, tag_list.map(&:downcase).join(" "), of, country, region, >> city].flatten.join(" ") >> end >> >> >> Thus , this searchable return this kind of content : >> >> "Incroyables formations rocheuses paysages montagnes d'Allemagne Allemagne >> La Saxe Bastei" >> "Coucher de soleil, vallée de la mort manuelle deserts coucher de soleil du >> Chili Chili Nord du Chili Valle de la Luna" >> "Regard Granada Nicaragua manuelle du Nicaragua Nicaragua Granada et >> alentours Granada" >> >> Now, my goal is to be able to search within this content with multiple >> words. >> >> If I try : "Seb Montagnes", it return results. >> >> But if I try 'Seb Montagne", it return nothing, even with enable star set to >> true. >> >> I can't understand how to make this work. Any idea? >> >> (as a note, sorry for the French words guys...) >> >> >> >> -- >> 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] >> <mailto:[email protected]>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/thinking-sphinx/491ca9e5-c597-4836-9561-c93cd0cfffe1%40googlegroups.com >> >> <https://groups.google.com/d/msgid/thinking-sphinx/491ca9e5-c597-4836-9561-c93cd0cfffe1%40googlegroups.com?utm_medium=email&utm_source=footer>. > > > -- > 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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/thinking-sphinx/92C7F54A-8766-4F32-8D5E-5E1EDD6E7090%40wdstudio.com > > <https://groups.google.com/d/msgid/thinking-sphinx/92C7F54A-8766-4F32-8D5E-5E1EDD6E7090%40wdstudio.com?utm_medium=email&utm_source=footer>. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/thinking-sphinx/837F4E81-6394-4B51-9FF0-1AC086CBBA35%40freelancing-gods.com.
