Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query DSL: Fuzzy Like This #103

Closed
kimchy opened this issue Apr 1, 2010 · 4 comments
Closed

Query DSL: Fuzzy Like This #103

kimchy opened this issue Apr 1, 2010 · 4 comments

Comments

@kimchy
Copy link
Member

kimchy commented Apr 1, 2010

Add another option to perform "like this" queries, this time using fuzzy queries. Here is the one that can execute on more than one field (defaults to the _all field):

{
    fuzzy_like_his : {
        fields : ["name.first", "name.last"],
        like_text : "something",
        max_query_terms : 12
    }
}

And here is one that can execute against a specific field:

{
    fuzzy_like_this_field : {
        "name.first" : {
            like_text : "something",
            max_query_terms : 12
        }
    }
}
@kimchy
Copy link
Member Author

kimchy commented Apr 1, 2010

Query DSL: Fuzzy Like This, closed by 118aa89.

@clintongormley
Copy link
Contributor

fuzzyLikeThis works, but fuzzyLikeThisField doesn't:

curl -XPUT 'http://127.0.0.2:9200/es_test_1/'  -d '
{}
'
curl -XPUT 'http://127.0.0.2:9200/_all/type_1/_mapping?ignoreConflicts=true'  -d '
{
   "allField" : {
      "store" : "yes",
      "termVector" : "with_positions_offsets"
   },
   "properties" : {
      "num" : {
         "store" : "yes",
         "type" : "integer"
      },
      "text" : {
         "store" : "yes",
         "type" : "string"
      }
   }
}
'

curl -XPOST 'http://127.0.0.2:9200/_refresh' 
curl -XGET 'http://127.0.0.2:9200/_cluster/health?timeout=2s&waitForStatus=green' 


curl -XPUT 'http://127.0.0.2:9200/es_test_1/type_1/1?opType=create'  -d '
{
   "num" : 2,
   "text" : "foo"
}
'

curl -XGET 'http://127.0.0.2:9200/_all/_count?pretty=true'  -d '
{
   "fuzzyLikeThis" : {
      "fields":   ["text"],
      "likeText" : "fop"
   }
}
'

curl -XGET 'http://127.0.0.2:9200/_all/_count?pretty=true'  -d '
{
   "fuzzyLikeThisField" : {
      "text" : {
         "likeText" : "fop"
      }
   }
}
'

clint

@kimchy
Copy link
Member Author

kimchy commented Apr 2, 2010

ok, fixed...

@clintongormley
Copy link
Contributor

fixed++

rmuir pushed a commit to rmuir/elasticsearch that referenced this issue Nov 8, 2015
C-Bish pushed a commit to C-Bish/elasticsearch that referenced this issue Mar 22, 2017
Update Coordination.md claiming issue 8217
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this issue Oct 2, 2023
With this commit we allow Rally to use different metrics stores and read
the respective credentials from Vault. This change is also integrated
into the Vagrant workflow as well as night-rally-admin which can still
be used locally.

Relates elastic#103
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this issue Oct 2, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants