Examine icon indicating copy to clipboard operation
Examine copied to clipboard

How to perform phrase query?

Open sayeduzzamancuet opened this issue 4 years ago • 2 comments

I have a index with a product name, product department and product Type. I want to search using department name and type. The department name contains multiple word, so I need to perform phrase query. How should I do this using examine such as select product where department like "general dept" or department like "special category" and product Type like "kids" ?

sayeduzzamancuet avatar Nov 11 '21 01:11 sayeduzzamancuet

@Shazwazza Could you please help here?

sayedgt avatar Nov 11 '21 08:11 sayedgt

The docs could be updated to include this info, please feel free to create a PR to update the docs (it's very easy to do). The searching docs: https://shazwazza.github.io/Examine/searching has a link to the FluentAPI tests which have tons of examples, including some with Phrase matching https://github.com/Shazwazza/Examine/blob/dev/src/Examine.Test/Examine.Lucene/Search/FluentApiTests.cs

Shazwazza avatar Apr 26 '22 01:04 Shazwazza