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

Support backtick phrase queries in Streaming Expressions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Resolved
    • None
    • 8.5
    • None
    • 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
          3 kB
          Joel Bernstein
        2. SOLR-14139.patch
          1.0 kB
          Joel Bernstein

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: