Hi Pat, Thank you again for your help. I'll post the question on the sphinx forum.
Best regards. On Jan 7, 7:21 am, Pat Allan <[email protected]> wrote: > Hi Thierry > > I don't think there's any way of choosing which stemmer applies - and > unfortunately, it's an index-level setting, not field-by-field - so > that makes it much harder. > > The only hackish solution I can think of is to have two subclasses - > one is french, one is english, and set different stemmers for each > (using set_property :morphology => "stem_x") - don't define the index > on the parent class, just the subclasses. Beyond that, you may be out > of luck, but perhaps it's worth asking on the Sphinx forum as > well:http://sphinxsearch.com/forum/ > > Cheers > > -- > Pat > > On 06/01/2009, at 8:49 PM, thierry B wrote: > > > > > Hi, > > > Thank you very much for your quick answer. > > > I have a table with a field called 'description'. This field can > > contain either french, either english, but not both. > > > The approach you have proposed will make sphinx apply sequentially > > the english stemmer first and then the french stemmer if the english > > stemmer is not applicable. Is there a way to indicate that we want to > > apply a specific stemmer (for example french) when a specific > > condition is met (for example when a table field called 'lang' is set > > to 'fr') > > > Best regards. > > > On Jan 5, 3:27 pm, Pat Allan <[email protected]> wrote: > >> Hi Thierry > > >> It depends how you want to approach the problem... are the same > >> fields > >> going to contain both french and english? Or are they going to be > >> separate fields? > > >> If you've got a french stemmer compiled, then you can apply both > >> french and english stemming to the same indexes, using something like > >> the following in your config/sphinx.yml (I'm guessing the name of the > >> french stemmer): > > >> development: > >> morphology: stem_en, stem_fr > >> test: > >> morphology: stem_en, stem_fr > >> production: > >> morphology: stem_en, stem_fr > > >> Hope this provides something to start with. > > >> Cheers > > >> -- > >> Pat > > >> On 05/01/2009, at 9:17 PM, thierry B wrote: > > >>> Hello, > > >>> I 'd like to index both english and french data. I've compiled > >>> sphinx with libstemmer_c in order to index french. I know how to > >>> index/ > >>> search french and english separately but not both. > >>> What are the best pratices for managing different languages with > >>> thinking-sphinx ? > > >>> Thank you. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en -~----------~----~----~----~------~----~------~--~---
