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

Wild idea? Full text search? #586

Closed
tvld opened this issue May 17, 2019 · 1 comment
Closed

Wild idea? Full text search? #586

tvld opened this issue May 17, 2019 · 1 comment

Comments

@tvld
Copy link

tvld commented May 17, 2019

i18n is our main text driver and a great tool. Breaking our heads over how to implement a good, multi-language site search, it occurred to us that i18n already holds all our text and so in theory, this could work:

let searchFor = 'red wine'
let resultArray = this.$tf(searchFor) // finds array of objects with at least the found text and $route

Of course the issue is to get all the $routes for each call of $t() ...But I don't have good answer. Rendering all pages in background on first search would not work for very large sites...

@kazupon
Copy link
Owner

kazupon commented Jul 17, 2019

Full-text search is not a feature of VueI18n and should be implemented in userland.

@kazupon kazupon closed this as completed Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants