On 11.07.2007, at 15:40, Andreas Korth wrote: > Turns out there is a problem with a custom analyzer of mine. It works > OK and passed all tests but it seems that Ferret isn't using the same > analyzer for searching and indexing although I've arranged for it. Or > so I thought.
Here are three more questions related to the problem. The problem is definitely an analyzer mismatch but I can't really put my finger on it. 1. Is it required to pass the field_infos everytime the index is opened, or is it sufficient if the index is once created via FieldInfos#create_index? In other words: are the field infos stored in the index? 2. The analyzer to be used for both reading and writing is passed to Index.new() via the :analyzer parameter. Correct? This is what I do and I even set the analyzer explicitly using Index#add_document(doc, analyzer). 3. For a given Index, how can I determine which analyzer is currently used for any given field, both for reading and writing? Cheers, Andy _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

