I am wondering if it is possible to create a "reverse" pattern search/query analyser where the pattern is stored in the field and the string to match against is the query
this is probably possible with percolator api. You register your pattern as percolator queries (potentially with some metadata, then you percolate your docs containing the string to match against it. I think the only step missing is the "doc return" part, in the standard way you get back the Id of the percolate query. You probably need a second lookup fo the doc content by Id.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.