In che modo sono phrase
e term
diversi in una query Structured
?Qual è la differenza tra frase e termine nelle query strutturate?
Ho questo dati in mio dominio CloudSearch:
{
"guid": 9,
"operating_systems": [
"12345", "123"
],
"manufacturer": "sealand",
"model": "gaming tree whale plum",
"identifier": "gaming tree whale plum",
"type": "computer",
"created_at": "1982-10-14T14:43:54Z"
}
"model"
è scrivere text
, "identifier"
è di tipo literal
, "created_at"
è scrivere date
.
Facciamo un paio di domande:
(phrase field=model 'tree whale') match
(phrase field= identifier 'tree whale') no match
(phrase 'tree whale') match
(phrase field=created_at '1982-10-14T14:43:54Z') match (this shouldn't match according to docs)
(term field=model 'tree whale') match
(term field= identifier 'tree whale') no match
(term 'tree whale') match
(term field=created_at '1982-10-14T14:43:54Z') match
C'è qualcosa che posso fare con phrase
che non posso fare con term
e viceversa?
'phrase' corrisponde nell'ordine esatto e' term' corrisponde se il campo contiene il termine di ricerca ovunque. Sono possibili "frasi sciatte". Stai cercando altre differenze specifiche? – jbird