-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add support for 'completion' type mapping for auto-suggest #115
Comments
Would just need to add a hook/filter for the mapping process in Indexer.php, shouldn tbe too bad |
That would be great. ;) |
Hi. But now it's occurred to me that this might not be the best way to go about it - ie: modifying the plugin. I've now seen that I could use the I'm not quite sure what I'm doing wrong, but I don't seem to be getting the $post data when trying this. (It does modify the document structure before indexes though: In my theme's functions.php I have added :
But it doesn't appear to have anything set in $post thanks. ps: I manually mapped the 'suggest' field for completion etc. when I created the index before running the plugin using :
This then provides the data for an autocompletion suggestion via this POST : (for pasting into the Sense Chrome extension)
This data can then be consumed by a library like Typeahead.js (using the data as the remote source for Bloodhound ) to build a nice autosuggestion drop-down. |
update: Argh. I just realised I was missing the $priority and $accepted_args parameters when calling add_filter() I'm now doing it like this :
|
Hi,
How hard would it be to add some mappings for a 'completion' type, to use for an auto-suggest textfield?
see : http://www.elasticsearch.org/blog/you-complete-me/
thanks.
The text was updated successfully, but these errors were encountered: