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

No search results when there are #1286

Open
tesuji opened this issue Jul 25, 2020 · 4 comments
Open

No search results when there are #1286

tesuji opened this issue Jul 25, 2020 · 4 comments
Labels
A-Search Area: Search

Comments

@tesuji
Copy link
Contributor

tesuji commented Jul 25, 2020

For example: https://doc.rust-lang.org/nightly/reference/expressions/if-expr.html?search=if%20let
image

@ehuss ehuss added the A-Search Area: Search label Jul 28, 2020
@ehuss
Copy link
Contributor

ehuss commented Jul 28, 2020

Unfortunately if and let are stop words ((src)[https://github.com/mattico/elasticlunr-rs/blob/beedaf86038839b07df007b0f7cf8417e4414956/src/lang/en.rs#L22-L33]), so they aren't indexed.

I think it is possible to define a custom pipeline in elasticlunr, but I fear that removing the stop words would result in noticeably worse search results (and maybe a much larger index?). Perhaps if search.use-boolean-and were true it wouldn't be so bad, but the default is false, and I'm not really sure if it would be wise to change that.

@tesuji
Copy link
Contributor Author

tesuji commented Jul 28, 2020

Is there a way to search in table content (sections listing) only?
That might reduce the index and create more correctly search result.

@ehuss
Copy link
Contributor

ehuss commented Jul 28, 2020

I don't think so, I believe it can only boost the ranking of different things.

@tshepang
Copy link
Member

the default is false, and I'm not really sure if it would be wise to change that.

I find current behavior surprising, so curious why not change the default to use-boolean-and = true... why would it be not wise?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Search Area: Search
Projects
None yet
Development

No branches or pull requests

3 participants