No, neither Lucene nor Solr provide a "mask match" feature. You could write custom code to emulate such a feature. Elasticsearch appears to have done that with its "percolate" feature:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-percolate.html

-- Jack Krupansky

-----Original Message----- From: Muhammad Gelbana
Sent: Friday, April 25, 2014 4:01 PM
To: Ahmet Arslan
Cc: solr-user@lucene.apache.org
Subject: Re: Search for a mask that matches the requested string

I have no idea how can this help me. I have been using solr for a few weeks
and I'm not familiar with it yet. I'm asking for a very simple task, a way
to customize how solr matches a string, does this exist in solr ?

*---------------------*
*Muhammad Gelbana*
http://www.linkedin.com/in/mgelbana


On Thu, Apr 24, 2014 at 10:09 PM, Ahmet Arslan <iori...@yahoo.com> wrote:

Hi,

Please see : https://github.com/flaxsearch/luwak

Ahmet


On Thursday, April 24, 2014 8:40 PM, Muhammad Gelbana <m.gelb...@gmail.com>
wrote:
(Please make sure you reply to my address because I didn't subscribe to
this mailing list)

I'm using Solr 4.6

I need to store string masks in Solr. By masks, I mean strings that can
match other strings.

Then I need to search for masks that match the string I'm providing in my
query. For example, assume the following single-field document stored in
Solr:

{
    "fieldA": "__A__"
}

I need to be able to find this document if I query the fieldA field with a
string like *12A34*, as the underscore "*_*" matches a single string. The
single string matching mechanism is my strict goal here, multiple string
matching won't be helpful.

I hope I was clear enough. Please elaborate because I'm not versatile with
solr and I haven't been using it for too long.
Thank you.

*---------------------*
*Muhammad Gelbana*
http://www.linkedin.com/in/mgelbana



Reply via email to