Developing Your Own Solr Filter
Rafał Kuć writes:
Sometimes Lucene and Solr out of the box functionality is not enough. When such time comes, we need to extend what Lucene and Solr gives us and create our own plugin. In todays post I’ll try to show how to develop a custom filter and use it in Solr.
Assumptions
Lets assume, that we need a filter that would allow us to reverse every word we have in a given field. So, if the input is “solr.pl” the output would be “lp.rlos”. It’s not the hardest example, but for the purpose of this entry it will be enough. One more thing – I decided to omit describing how to setup your IDE, how to compile your code, build jar and stuff like that. We will only focus on the code.
Template for creating your own Solr filter.
I persist in thinking that as “big data” arrives that the potential for ETL is going to decline. Where will you put your “big data” while processing it?
Much more likely to index “big data” in place and perform operations on the indexes to extract a subset of your “big data.”
So in terms of matching up data from different schemas or formats, what sort of filters will you be using?