GroupedPayloadSpanQuery

De JDONREF Wiki
Révision de 28 septembre 2014 à 23:08 par Julien2512 (discussion | contributions) (Page créée avec « Ensure tokens with same payload values are grouped together. For example, the document : { "fullName": "BOULEVARD|1 DE|1 PARIS|1 L|2 HOPITAL|2" } will not match the re... »)

(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

Ensure tokens with same payload values are grouped together.

For example, the document :

 { "fullName": "BOULEVARD|1 DE|1 PARIS|1 L|2 HOPITAL|2" }

will not match the request :

curl -XPOST 'http://localhost:9200/_search' -d '{

 "query": {
     "span_groupedpayload" : {
       "clauses" : [
          { "fullName" : "BOULEVARD"} ,
          { "fullName" : "HOPITAL"} ,
          { "fullName" : "PARIS"}
       ]
   }
 }'

because token HOPITAL break the group of payload values from BOULEVARD and PARIS.