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

Search on module description and title #14

Open
perifer opened this issue Jan 17, 2017 · 5 comments
Open

Search on module description and title #14

perifer opened this issue Jan 17, 2017 · 5 comments
Labels

Comments

@perifer
Copy link
Contributor

perifer commented Jan 17, 2017

This was mentioned by the editors on Höör: It would be nice if it was possible to search on the module description. Seems to me like a very good idea.

When testing this I found that the search seemed very inconsist. I'm not sure what it matches on actually. I would have guessed titles but that doesn't seem to be the case.

_lokal_miljo__posts_ _hoors_kommun_ _wordpress

@Svanmark Svanmark added the bug label Jan 24, 2017
@perifer
Copy link
Contributor Author

perifer commented Jun 1, 2017

I found the reason for the broken search: https://github.com/helsingborg-stad/Modularity/blob/master/source/php/Search.php#L96

I can't understand what moduleSearch() tries to do actually so I can't debug this. But completely disabling this at least brings back consistent results. With this enabled the page count is for example wrong, and the result is mixed with other post types.

@Svanmark
Copy link
Contributor

Svanmark commented Jun 1, 2017 via email

@perifer
Copy link
Contributor Author

perifer commented Jun 1, 2017

Not sure, I reported inconsistent search on Jan 17. Inconsistent could still mean that I still doesn't understand exactly what is going on though.

@perifer
Copy link
Contributor Author

perifer commented Jun 14, 2017

#20 is merged, but this is not resolved. Can you reproduce the oddities I'm seeing or is it just I who misinterpreters the functionality?

@sebastianthulin
Copy link
Member

I have reproduced the "mixed post types" issue. Looking into a more straight forward solution here.

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

No branches or pull requests

3 participants