-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Comments
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 #. |
@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. |
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"]
} |
@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. |
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 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? |
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 👍 |
@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. |
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? |
No problem.
Dan Ken |
Fix issue #2723: Improve list search functionality
Blocked by: #2609Expanding 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
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:
SearchScheme
for lists; see the e.g.AuthorSearchScheme
as an example.openlibrary/openlibrary/plugins/worksearch/code.py
Lines 574 to 597 in 4f0c3c7
openlibrary/openlibrary/plugins/worksearch/code.py
Lines 664 to 674 in 4f0c3c7
Stakeholders
@cdrini @seabelis @el4ctr0n
The text was updated successfully, but these errors were encountered: