Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14139

Support backtick phrase queries in Streaming Expressions

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Resolved
    • Affects Version/s: None
    • Fix Version/s: 8.5
    • Component/s: None
    • Labels:
      None

      Description

      Currently in order to make phrase queries in Streaming Expressions you must escape the quotes as follows:

      search(collection1, q="fieldA:\"hello world\" AND fieldB:two")

      This ticket will allow phrase queries to be entered with back ticks as follows:

      search(collection1, q="fieldA:`hello world` AND fieldB:two") 

      Back ticks are nice because they are infrequently searched on and people in the SQL world are used to back ticks meaning "take the literal value of this string".

      Under the covers back ticks will be translated to double quotes.

        Attachments

        1. SOLR-14139.patch
          1.0 kB
          Joel Bernstein
        2. SOLR-14139.patch
          3 kB
          Joel Bernstein

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jbernste Joel Bernstein
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: