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

Boolean search bug #284

Open
freyesdulib opened this issue Apr 5, 2023 · 1 comment
Open

Boolean search bug #284

freyesdulib opened this issue Apr 5, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@freyesdulib
Copy link
Contributor

jcrs AND "morris fred". Bad request error when clicking next button in search results. Possibly a related problem per David Fasman:

I believe that the AND and OR operators are switched. When you run a search (here is my test), you should theoretically get fewer results as the words increase, although it is in fact the opposite that is happening. So for example, if you search (quotes added for clarity--not actually in the search), "fun," you get 52 results. Add another word, "fun guy" (again not in quotes) and you get 60 results. Add another word, "fun guy basketball" (again not in quotes) and you get 843 results. And finally, another word, "fun guy basketball baseball" (again, no quotes) and you get 1614 results. To my understanding results should not increase, unless there is an invisible OR operator between the words. Basically, you are searching fun OR guy OR basketball OR baseball, when in reality, it should be AND, like fun AND guy AND basketball AND baseball. I hope that makes sense. I was wondering why my search results increased as I added words that should theoretically narrow the query.

@kcrowe1981 kcrowe1981 added the bug Something isn't working label Apr 12, 2024
@kcrowe1981 kcrowe1981 assigned kcrowe1981 and unassigned kcrowe1981 Apr 12, 2024
@kcrowe1981
Copy link
Collaborator

David and I just chatted about this again, figured a clarification w/some examples would be helpful based on current repository records.

  • A search for the word "fun" gives us 90 results
  • A separate search for "people" gives us 700 results
  • A search for fun OR people (which should give 790 results, or all of the above results from each search) gives us 1 result, the record for the a/v object "The Fun People) https://specialcollections.du.edu/object/4a4e13dc-5dc5-4457-8dee-2e8c9abfd459
  • A search for fun AND people (which should give 1 result, the above film) gives us that one film as a result.

Basically, the "OR" search is "AND"-ing, and I'm not 100% sure the "AND" is working correctly. A similar experiment on the words "fun" and "guy" as David did above provided some similarly wonky results (no records include both words together).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants