On Mon, Jan 23, 2012 at 5:58 AM, Anderson vasconcelos <anderson.v...@gmail.com> wrote: > Hi Gora, thanks for the reply. > > I'm interesting in see how you did this solution. But , my time is not > to long and i need to create some solution for my client early. If > anyone knows some other simple and fast solution, please post on this > thread.
What is your time line? I will see if we can expedite the open sourcing of this. > Gora, you could talk how you implemented the Custom Filter Factory and > how used this on SOLR? [...] That part is quite simple, though it is possible that I have not correctly addressed all issues for a custom FilterFactory. Please see: AspellFilterFactory: http://pastebin.com/jTBcfmd1 AspellFilter: http://pastebin.com/jDDKrPiK The latter loads a java_aspell library that is created by SWIG by setting up Java bindings on top of SWIG, and configuring it for the language of interest. Next, you will need a library that encapsulates various aspell functionality in Java. I am afraid that this is a little long: Suggest: http://pastebin.com/6NrGCVma Finally, you will have to set up the Solr schema to use this filter factory, e.g., one could create a new Solr TextField, where the solr.DoubleMetaphoneFilterFactory is replaced with com.mimirtech.search.solr.analysis.AspellFilterFactory We can discuss further how to set this up, but should probably take that discussion off-list. Regards, Gora