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

Implement Exact Phrase, Case & Punctuation Sensitivity search options #289

Open
plutonik-a opened this issue Nov 13, 2017 · 4 comments
Open
Assignees
Labels
Search Lucene or the search module

Comments

@plutonik-a
Copy link
Contributor

plutonik-a commented Nov 13, 2017

Refine the search with 3 options "Exact phrase", "Case sensitive" and "Punctuation sensitive", directly below the search bar.

bildschirmfoto 2017-11-13 um 13 50 30


Parent: #284


Edit on Nov 11, 2019:

From @joshbotts via the mailbox:

Wanted to flag this mailbox inquiry as an instance where a case-sensitive search capability would come in handy. Searching for "goa" returns several hundred hits, but most of them are for abbreviations for "Government of ..." rather than the geographical entity in South Asia.

--> User story: I want to search for "Goa" and exclude hits that are upper case ("GOA")

Originally posted by @joewiz in #255 (comment)

@plutonik-a plutonik-a added this to the 2.1 FRUS Advanced search milestone Nov 13, 2017
@plutonik-a plutonik-a self-assigned this Nov 14, 2017
plutonik-a added a commit that referenced this issue Nov 14, 2017
* refactor class hsg-search-inputs for vertical and horizontal alignment
* extract checkboxes for refining search as include
„filter-querystring-include.html“
* add css to component
@plutonik-a
Copy link
Contributor Author

Current UI:

bildschirmfoto 2017-11-14 um 17 45 53

plutonik-a added a commit that referenced this issue Nov 15, 2017
* add values and names to checkboxes
* add IDs and class names to forms
* get values of checkboxes as parameters on submitting the query
@plutonik-a
Copy link
Contributor Author

plutonik-a commented Nov 16, 2017

@tuurma @joewiz

Status:

  • The UI is ready.
    bildschirmfoto 2017-11-16 um 17 44 14

  • Parameters of clicked filters are serialized as url parameters.
    bildschirmfoto 2017-11-16 um 17 41 01

TODO:

  • Filter search results with given parameters

plutonik-a added a commit that referenced this issue Nov 20, 2017
Add prefixed underscore to filename to indicate an include file.
@tuurma
Copy link
Contributor

tuurma commented Nov 29, 2017

Next iteration

@plutonik-a plutonik-a added Search Lucene or the search module UI labels Nov 11, 2019
@joewiz joewiz changed the title Create component "refine search term" Implement Exact Phrase, Case & Punctuation Sensitivity search options Nov 13, 2019
@joewiz joewiz removed the UI label Nov 13, 2019
@joewiz
Copy link
Member

joewiz commented Nov 13, 2019

  • For phrase search, see https://exist-db.org/exist/apps/doc/lucene#describe
  • For punctuation & case sensitivity, see https://exist-db.org/exist/apps/doc/lucene#analyzer
    • Note: The whitespace analyzer gives us case and punctuation sensitivity, but how to achieve only one or the other?
  • Q: Might the SnowballAnalyzer perform better for our "stock" queries, e.g., as a replacement for StandardAnalyzer? Does it provide any built-in case/punctuation sensitivity as parameters. (We could also consider adding a "stemming" checkbox.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Search Lucene or the search module
Projects
None yet
Development

No branches or pull requests

3 participants