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

Feature request: Add tags to searchable content, so that sword finds also tags #183

Open
chrisi51 opened this issue Aug 11, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@chrisi51
Copy link

We just recognized, that the sword from the normal searchbox does not seem to be used to search in the tags of the index.

So if i have a tag foo on a news for example, it is listed in the tags column of tx_ke_search_index of the corresponding entry. But if i just put foo in the searchbar, it is not getting found. if i put foo at the end of the content column of the entry, it is found.

So it seems, you can't search for tags, except if you put in a corresponding filter? Or do i have any configuration issue or is it even a bug?

Our tags are very dynamic and so it would be not practicable to put all those tags into single filter.

Thx for any help =)

@christianbltr
Copy link
Member

Yes, that is in fact by design. The idea was to only make content searchable with the fulltext search which is in fact visible to the user. To solve this you could add a hook to the indexer to add the tags to the database columns content or content_hidden.

This requirement comes up every once in a while so maybe it would be a good idea to make this a feature of ke_search, maybe as a configurable option.

Also meta information from the page properties could be included, e. g. the "keywords" field which is also currently not indexed.

@christianbltr christianbltr changed the title Is it intended, that sword is not used to search for tags? Feature request: Add tags to searchable content, so that sword finds also tags Aug 18, 2023
@christianbltr christianbltr added the enhancement New feature or request label Aug 25, 2023
@Inovanet
Copy link

Is there something new to this feature?

@christianbltr
Copy link
Member

No, not yet. Are interesting in sponsoring this feature or providing a Pull Request?

@Inovanet
Copy link

I don't have a Pull Request. Is there some date when this feature might be available?

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

No branches or pull requests

3 participants