Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-2952

gfsh doesn't support exact match lucene queries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • lucene
    • None

    Description

      This command:

      gfsh>search lucene --name=index --region=data --defaultField=Resolution_Description --queryStrings='Police Dept'
      

      Runs this lucene query:

      Resolution_Description:police Resolution_Description:dept
      

      I also tried this command which ran the same lucene query as above:

      gfsh>search lucene --name=index --region=data --defaultField=Resolution_Description --queryStrings='\"Police Dept\"'
      

      The java API supports exact match queries with "" around the queryString. Doing this causes this lucene query to be run:

      Resolution_Description:"police dept"
      

      Attachments

        Issue Links

          Activity

            People

              DivineEnder David Anuta
              boglesby Barrett Oglesby
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: