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

How to perform phrase query? #258

Open
sayeduzzamancuet opened this issue Nov 11, 2021 · 2 comments
Open

How to perform phrase query? #258

sayeduzzamancuet opened this issue Nov 11, 2021 · 2 comments
Labels

Comments

@sayeduzzamancuet
Copy link

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" ?

@sayedgt
Copy link

sayedgt commented Nov 11, 2021

@Shazwazza Could you please help here?

@Shazwazza
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants