On Fri, Aug 10, 2012 at 12:38:46PM -0400, Jack Krupansky wrote:
> "Doc1 has the pattern "AB%CD%" associated with it (somehow?!)."
>
> You need to clarify what you mean by that.
I'm not the OP, but I think (s)he means the patterns are in the
database and the string to match is given in the query.
"Doc1 has the pattern "AB%CD%" associated with it (somehow?!)."
You need to clarify what you mean by that.
To be clear, Solr support for wildcards is a superset of the SQL LIKE
operator, and the patterns used in the LIKE operator are NOT stored in the
table data, but used at query time - same
> So in the example I provided below, a user might enter "
> ABCDXYZ " and I need Solr to return Doc1, as Doc1 has the
> pattern "AB%CD%" associated with it (somehow?!).
OK understood now. You can use Lucene's MemoryIndex for this.
http://lucene.apache.org/core/3_6_1/api/contrib-memory/org/apache