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

cuelang.org: searching for content with named attributes doesn't refine the search results as expected #3113

Open
jpluscplusm opened this issue May 2, 2024 · 3 comments
Labels
cuelang.org frontend cuelang.org frontend UI/UX related NeedsInvestigation

Comments

@jpluscplusm
Copy link
Collaborator

jpluscplusm commented May 2, 2024

What page were you looking at?

https://cuelang.org/search/?q=title:%22case%22%20contentType:%22Concept%20Guides%22

What version of the site were you looking at?

cue-lang/cuelang.org@8cc8808

What did you do?

I tried to search for all concept guides whose titles contain the phrase "case". (I was actually looking for the multi-word phrase "use case", but I've simplified it for this issue, as the problem still strikes)

What did you expect?

I expected (at least) the 5 concept guides whose titles end "...use case" to be returned:

I especially expected this because of the contents of hugo/algolia-settings.js:

$ grep -B2 searchableAttributes hugo/algolia-settings.js  
index.setSettings({
    queryLanguages: ['en'],
    searchableAttributes: ['title', 'content', 'summary', 'tags', 'contentType', 'authors'],

What did you see instead?

Only 2 results were returned. One is correct (based on my assumptions about the search page's capabilities) because it is a concept guide whose title contains the term case, and one is incorrect as its title doesn't contain that term. (This is a screenshot of the search term without quotes; the same results are returned if quotes are added (title:"case"))

image

@jpluscplusm jpluscplusm added NeedsInvestigation Triage Requires triage/attention cuelang.org frontend cuelang.org frontend UI/UX related labels May 2, 2024
@myitcv myitcv removed the Triage Requires triage/attention label May 2, 2024
@myitcv
Copy link
Member

myitcv commented May 2, 2024

I expected (at least) the ~6 concept guides whose titles end "...use case" to be returned

For completeness' sake it would be useful to include links to these please: that might be relevant in the investigation.

@myitcv
Copy link
Member

myitcv commented May 2, 2024

One correct (based on my assumptions about the search page's capabilities), and one not.

Please can you expand on this as to why one is right and the other wrong?

It's obvious after a close reading, but in the interests of helping others who come to this issue it would be best to make it easier for them.

@jpluscplusm
Copy link
Collaborator Author

jpluscplusm commented May 2, 2024

I expected (at least) the ~6 concept guides whose titles end "...use case" to be returned

For completeness' sake it would be useful to include links to these please: that might be relevant in the investigation.

Done.

One correct (based on my assumptions about the search page's capabilities), and one not.

Please can you expand on this as to why one is right and the other wrong?

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuelang.org frontend cuelang.org frontend UI/UX related NeedsInvestigation
Projects
Status: Backlog
Development

No branches or pull requests

2 participants