Great, that worked. Thanks Ray and Emir for the solutions.


On 9/16/16, 3:49 PM, "Ray Niu" <newry1...@gmail.com> wrote:

    Just add q.op=OR to change default operator to OR and it should work
    
    2016-09-16 12:44 GMT-07:00 Gandham, Satya <sgand...@stubhub.com>:
    
    > Hi Emir,
    >
    >            Thanks for your reply. But I’m afraid I’m not seeing the
    > expected response. I’ve included the query and the corresponding debug
    > portion of the response:
    >
    > select?q=Justin\ Beiber&df=exactName_noAlias_en_US
    >
    >  Debug:
    >
    >     "rawquerystring":"Justin\\ Beiber",
    >     "querystring":"Justin\\ Beiber",
    >     "parsedquery":"+((exactName_noAlias_en_US:justin
    > exactName_noAlias_en_US:justin beiber)/no_coord) +exactName_noAlias_en_US:
    > beiber",
    >     "parsedquery_toString":"+(exactName_noAlias_en_US:justin
    > exactName_noAlias_en_US:justin beiber) +exactName_noAlias_en_US:beiber",
    >     "explain":{},
    >
    >
    > Satya.
    >
    > On 9/16/16, 2:46 AM, "Emir Arnautovic" <emir.arnauto...@sematext.com>
    > wrote:
    >
    >     Hi,
    >
    >     I missed that you already did define field and you are having troubles
    >     with query (did not read stackoverflow). Added answer there, but just
    > in
    >     case somebody else is having similar troubles, issue is how query is
    >     written - space has to be escaped:
    >
    >        q=Justin\ Bieber
    >
    >     Regards,
    >     Emir
    >
    >     On 13.09.2016 23:27, Gandham, Satya wrote:
    >     > HI,
    >     >
    >     >            I need help with defining a field ‘singerName’ with the
    > right tokenizers and filters such that it gives me the below described
    > behavior:
    >     >
    >     > I have a few documents as given below:
    >     >
    >     > Doc 1
    >     >        singerName: Justin Beiber
    >     > Doc 2:
    >     >        singerName: Justin Timberlake
    >     > …
    >     >
    >     >
    >     > Below is the list of quries and the corresponding matches:
    >     >
    >     > Query 1: “My fav artist Justin Beiber is very impressive”
    >     > Docs Matched : Doc1
    >     >
    >     > Query 2: “I have a Justin Timberlake poster on my wall”
    >     > Docs Matched: Doc2
    >     >
    >     > Query 3: “The name Bieber Justin is unique”
    >     > Docs Matched: None
    >     >
    >     > Query 4: “Timberlake is a lake of timber..?”
    >     > Docs Matched: None.
    >     >
    >     > I have this described a bit more detailed here:
    > http://stackoverflow.com/questions/39399321/solr-shingle-query-matching-
    > keyword-tokenized-field
    >     >
    >     > I’d appreciate any help in addressing this problem.
    >     >
    >     > Thanks !!
    >     >
    >
    >     --
    >     Monitoring * Alerting * Anomaly Detection * Centralized Log Management
    >     Solr & Elasticsearch Support * http://sematext.com/
    >
    >
    >
    >
    

Reply via email to