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

handle AND in text query #7

Open
eroux opened this issue Jul 4, 2024 · 5 comments
Open

handle AND in text query #7

eroux opened this issue Jul 4, 2024 · 5 comments
Assignees

Comments

@eroux
Copy link
Contributor

eroux commented Jul 4, 2024

On the current website when there is an AND, the query is interpreted as two (or well, multiple) phrases separated by " AND ". This is particularly useful for etexts. There might be better ways for users to indicate that but since it already exists let's handle it

@roopeux
Copy link
Collaborator

roopeux commented Aug 7, 2024

@eroux, our current search does AND by default.

@roopeux roopeux closed this as completed Aug 7, 2024
@eroux eroux reopened this Aug 7, 2024
@eroux
Copy link
Contributor Author

eroux commented Aug 7, 2024

We don't do it in the etexts (which is a big use case for the AND)

if users type "AND" in the query it will mess it up in the current system

We don't provide control over where to cut the phrase, or multiple AND

We don't provide AND for long queries

So no

@roopeux
Copy link
Collaborator

roopeux commented Aug 7, 2024

In etexts we currently require exact phrase which is AND by default.

Users practically never type AND. According to our logs, roughly ten times in a million, probably including ourselves testing. I can spend time taking care of this 0.001% of use cases if you want.

@eroux
Copy link
Contributor Author

eroux commented Aug 7, 2024

the usage of AND on the production website is the following:

if the user types "gsung 'bum AND mi pham" (I know, this example works on the dev website, that's not the point) it will select results with a match phrase for "gsung 'bum" and a match phrase on "mi pham", see https://www.bdrc.io/blog/2021/03/03/search-me/

We can imagine having that as a low priority, but let's not give up on it no

@eroux
Copy link
Contributor Author

eroux commented Aug 7, 2024

we could imagine having an additional syntax with double quotes, like "gsung 'bum" "mi pham", that's also fine

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