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

List search only finds exact matches: Switch to use Solr #2723

Closed
jessamynwest opened this issue Dec 12, 2019 · 11 comments · Fixed by #10460 · May be fixed by #9695
Closed

List search only finds exact matches: Switch to use Solr #2723

jessamynwest opened this issue Dec 12, 2019 · 11 comments · Fixed by #10460 · May be fixed by #9695
Labels
Good First Issue Easy issue. Good for newcomers. [managed] Lead: @cdrini Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed] Module: Solr Issues related to the configuration or use of the Solr subsystem. [managed] Priority: 2 Important, as time permits. [managed] Theme: Lists Issues related to reading Lists Theme: Search Issues related to search UI and backend. [managed] Type: Feature Request Issue describes a feature or enhancement we'd like to implement. [managed]

Comments

@jessamynwest
Copy link
Collaborator

jessamynwest commented Dec 12, 2019

Blocked by: #2609

Expanding on #364 Improve and expand list searching to search inside list titles.

A List search result is only given if the exact, full name of a list is used in the search. Searching on words that are only part of a list name returns "No results found."

Relevant url?

https://openlibrary.org/search/lists

Steps to Reproduce

  1. Go to ... https://openlibrary.org/search/lists
  2. Do ... enter a partial list name, for example, https://openlibrary.org/search/lists?q=banned
  • Actual: only exact matches returned
  • Expected: any list containing search term should be returned

Proposal & Constraints

We can now replace lists search with solr-backed list search since lists are now in solr! To do so, we will need to:

Stakeholders

@cdrini @seabelis @el4ctr0n

@jessamynwest jessamynwest added the Type: Feature Request Issue describes a feature or enhancement we'd like to implement. [managed] label Dec 12, 2019
@xayhewalo xayhewalo added Module: Solr Issues related to the configuration or use of the Solr subsystem. [managed] Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] Priority: 3 Issues that we can consider at our leisure. [managed] State: Backlogged Theme: Search Issues related to search UI and backend. [managed] labels Dec 12, 2019
@xayhewalo
Copy link
Collaborator

@cdrini @tfmorris I'm assuming list search is a Solr feature? Will that be apart of the reindex?

@BrittanyBunk
Copy link
Contributor

BrittanyBunk commented Dec 27, 2019

You're asking for a search bar for a list when clicking on it? This really is part of a bigger issue, where when clicking on anything - authors, works, etc. - it's not possible to alphabetize or search. I mentioned it on #2741 too, but for authors. I believe I also created a github issue for works/editions, but maybe someone else could find that #.

@tfmorris
Copy link
Contributor

@guyjeangilles It would be a combination of UI plus Solr. It's a new feature which would not fall naturally out of the general Solr upgrade project.

@mekarpeles mekarpeles removed the Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] label Apr 20, 2020
@cdrini cdrini added Lead: @cdrini Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed] State: Blocked Work has stopped, waiting for something (Info, Dependent fix, etc. See comments). [managed] and removed Needs: Lead labels Apr 20, 2020
@cdrini cdrini removed the State: Blocked Work has stopped, waiting for something (Info, Dependent fix, etc. See comments). [managed] label Jun 11, 2024
@cdrini cdrini changed the title Improve list search List search only finds exact matches Jun 11, 2024
@cdrini cdrini added Priority: 2 Important, as time permits. [managed] Theme: Lists Issues related to reading Lists and removed Priority: 3 Issues that we can consider at our leisure. [managed] labels Jun 11, 2024
@cdrini
Copy link
Collaborator

cdrini commented Jun 11, 2024

Update: Lists are now in solr so this is no longer blocked! I updated the description with instructions. Here's a sample list record in our solr:

{
      "key":"/people/ScarTissue/lists/OL228125L",
      "name":"Cookbooks",
      "seed":["/works/OL8941312W","/works/OL189773W","/books/OL36885385M"],
      "type":"list",
      "subject":["Cookery","Cooking","Cooking, french","Cuisine en plein air","Dictionaries","English","French","French Cookery","French Cooking","French language","Outdoor cooking","Picnicking","Picnics","Pique-niques"],
      "subject_facet":["Cookery","Cooking","Cooking, french","Cuisine en plein air","Dictionaries","English","French","French Cookery","French Cooking","French language","Outdoor cooking","Picnicking","Picnics","Pique-niques"],
      "_version_":1796111292365275138,
      "subject_key":["cookery","cooking","cooking_french","cuisine_en_plein_air","dictionaries","english","french","french_cookery","french_cooking","french_language","outdoor_cooking","picnicking","picnics","pique-niques"]
}

@mekarpeles mekarpeles added Needs: Response Issues which require feedback from lead Good First Issue Easy issue. Good for newcomers. [managed] labels Jul 15, 2024
@mekarpeles mekarpeles changed the title List search only finds exact matches List search only finds exact matches: Switch to use Solr Jul 15, 2024
@jediD83
Copy link

jediD83 commented Jul 20, 2024

@cdrini May I please take a crack on this issue?

Although I've never work with Solr before, nor am I confident with my current skills, I have done some relevant self-taught tutorials, such as Django and Flask.

@cdrini
Copy link
Collaborator

cdrini commented Jul 29, 2024

Hi @jediD83 , go for it! This might be a touch difficult; I updated the description with more details. Feel free to give it a go though! Let us know if you hit any issues

@cdrini cdrini removed the Needs: Response Issues which require feedback from lead label Jul 29, 2024
@jediD83
Copy link

jediD83 commented Aug 6, 2024

@cdrini Thank for assigning this task to me. I think I'm almost done, but ...I don't know how to test if my codes are working properly.

In the development version, the Search Results doesn't work like the real one. And currently, all errors encountered have been fixed, but that doesn't mean my objectives were reached.

I have sent a Slack volunteering request, and waiting for my invitation. Although I'm not sure what Slack name should I displayed: GitHub, OpenLibrary, or my Slack original name?

@cdrini
Copy link
Collaborator

cdrini commented Aug 6, 2024

Sweet! You should be able to test this by creating a new list on your local environment, and then searching for it. You can create a draft PR with your code; that'll let us help you more quickly 👍

@mekarpeles should be able to add you to slack 👍

@jediD83
Copy link

jediD83 commented Aug 13, 2024

@mekarpeles should be able to add you to slack 👍

@mekarpeles @cdrini I don't want to sound rude but over a week had passed since this, and applied to OL's Volunteering as a Software Engineer, and I did not receive any email or slack invitation. I need a little help with my unfinished PR work.

@github-actions github-actions bot added the Needs: Response Issues which require feedback from lead label Aug 13, 2024
@cdrini
Copy link
Collaborator

cdrini commented Aug 13, 2024

Apologies @mekarpeles was away last week, he should be able to add you shortly 👍 Although I'm having trouble determining which application is yours; could you send me the name you used on your form?

@jediD83
Copy link

jediD83 commented Aug 13, 2024

Apologies @mekarpeles was away last week, he should be able to add you shortly 👍

No problem.

Although I'm having trouble determining which application is yours; could you send me the name you used on your form?

Dan Ken

@cdrini cdrini removed the Needs: Response Issues which require feedback from lead label Aug 19, 2024
@jediD83 jediD83 removed their assignment Oct 6, 2024
isabellabonilla added a commit to isabellabonilla/openlibrary that referenced this issue Feb 17, 2025
cdrini pushed a commit to isabellabonilla/openlibrary that referenced this issue Mar 27, 2025
cdrini added a commit that referenced this issue Mar 27, 2025
Fix issue #2723: Improve list search functionality
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue Easy issue. Good for newcomers. [managed] Lead: @cdrini Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed] Module: Solr Issues related to the configuration or use of the Solr subsystem. [managed] Priority: 2 Important, as time permits. [managed] Theme: Lists Issues related to reading Lists Theme: Search Issues related to search UI and backend. [managed] Type: Feature Request Issue describes a feature or enhancement we'd like to implement. [managed]
Projects
None yet
7 participants