Ok. It might be a parser referring to a json object under some new property

{
   "query": {
           "jinterval":"just a name"  // introducing new QPPlugin
      },
   "jparams": {                       // introducing new top-level entry
        "just a name": {
              "or":[    "foo",
                          "bar",
                           { "unordered":
                                    ["bag",
                                      "baz",
                                      "ban",
                                       { "phrase": ["moo","foo"]}
                                     ]
                            }
                      ],
               "field":"text_content"
             }
     }
}

Can we consider it as a spec for the new feature?

On Sun, Sep 8, 2019 at 12:16 AM Mikhail Khludnev <[email protected]> wrote:

> Thanks for your warm responses. I encounter Intervals, and considering
> introducing them in Solr JSON Request API.
> Following Query DSL approach gives me something like
> "interval":{  "or":["foo",
>                           "bar",
>                            {"interval": { "unordered":
>                                     ["bag",
>                                       "baz",
>                                       "ban",
>                                        { "interval":{ "phrase":
> ["moo","foo"]} }
>                                      ]}
>                           }
>                         ],
>                    "field":"text_content"}
> So, it implies creating {!inteval} query parser, which handles local param
> in a certain way, eg  it shouldn't support "or" and "phrase" an the same
> node.
> Not sure how to propagate "filed" to term nodes.
>
> I'd rather want to have more control over syntax and JsonQueryConverter.
>  "interval":{  "or":["foo",
>                           "bar",
>                            { "unordered":
>                                     ["bag",
>                                       "baz",
>                                       "ban",
>                                        { "phrase": ["moo","foo"]}
>                                      ]}
>                               }
>                           ],
>                    "field":"text_content"}
>
> Any ideas, preferences?
>
> On Sat, Sep 7, 2019 at 12:03 AM Mikhail Khludnev <[email protected]> wrote:
>
>> Hello,
>>
>> Finally we let users to send span queries via XML (yeah) query parser.
>> But I feel awkward to invoke XML under Json. Straightforward approach lead
>> us to bunch of span[Or|And|Not|Etc] QParser plugins. Are there any more
>> elegant ideas?
>>
>> --
>> Sincerely yours
>> Mikhail Khludnev
>>
>
>
> --
> Sincerely yours
> Mikhail Khludnev
>


-- 
Sincerely yours
Mikhail Khludnev

Reply via email to