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

AND operator does return result with both search terms #853

Open
ferdiga opened this issue Aug 11, 2024 · 2 comments
Open

AND operator does return result with both search terms #853

ferdiga opened this issue Aug 11, 2024 · 2 comments

Comments

@ferdiga
Copy link

ferdiga commented Aug 11, 2024

the AND operator (or may be xxxx +yyyy) as mentioned here
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax

should return only results matching both criteria

currently it works like an OR operator.

Version 28.0.1

@XueSheng-GIT
Copy link

+ means that word must be present. Thus, you need to add it to each word.

@ferdiga
Copy link
Author

ferdiga commented Sep 15, 2024

if not described in help text no unexperienced user will search "+john +claire" to get the results he is looking for,
or "+john -claire"

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

No branches or pull requests

2 participants