Robert Schultz
10/26/2022, 6:15 PMRobert Schultz
10/26/2022, 6:16 PMmkdir data
typesense-server --data-dir=./data --api-address=127.0.0.1 --api-port=8108 --peering-address=127.0.0.1 --api-key=TESTCASEKEY
curl "<http://localhost:8108/collections>" -X POST -H "Content-Type: application/json" -H "X-TYPESENSE-API-KEY: TESTCASEKEY" -d '{"name" : "twig", "fields" : [{ "name" : "content", "type" : "string", "optional" : true }] }'
curl "<http://127.0.0.1:8108/collections/twig/documents/import>" -X POST -H "X-TYPESENSE-API-KEY: TESTCASEKEY" --data-binary @"singledoc.jsonl"
Then perform search:
curl --silent "<http://127.0.0.1:8108/multi_search?query_by=content>" -X POST -H "Content-Type: application/json" -H "X-TYPESENSE-API-KEY: TESTCASEKEY" --data-binary @"searchTest.json"
It returns 1 hit, but I was expecting ZERO hits, because in the content the words "frontier mail" do not appear together. I see that according to highlight.meta.content.matched_tokens it only matched on "mail".
Am I not correctly doing phrase match properly? Is there an additional setting or flag I need to set?Kishore Nallan
10/27/2022, 4:39 AMRobert Schultz
10/27/2022, 11:50 AMKishore Nallan
10/27/2022, 2:13 PMKishore Nallan
10/27/2022, 3:07 PMRobert Schultz
10/28/2022, 1:44 AMRobert Schultz
11/08/2022, 1:55 PMKishore Nallan
11/08/2022, 2:13 PM