Thanks a lot Gora. I need to delivery the first release for my client on 25 january. With your explanation, i can negociate better the date to delivery of this feature for next month, because i have other business rules for delivery and this features is more complex than i thought. I could help you to shared this solution with solr community. Maybe we can create some component in google code, or something like that, wich any solr user can use.
2012/1/23, Gora Mohanty <g...@mimirtech.com>: > 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 >