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

Question: how to build a suggestion query #46

Open
xnaud opened this issue Oct 5, 2017 · 1 comment
Open

Question: how to build a suggestion query #46

xnaud opened this issue Oct 5, 2017 · 1 comment

Comments

@xnaud
Copy link

xnaud commented Oct 5, 2017

Hi,

Is there a way to build a suggestion query with spring-data-jest?
For example:

{
	"_source" : {
			"includes" : ["_id", "name", "state"],
    		"excludes" : ["geo"]
    	},
    "suggest" : {
    	"suggestion" : {
    		"text" : "aus",
    		"completion" : {
    			"field" : "suggest",
    			"size" : 10
    		}
    	}
    }
}
@VanRoy
Copy link
Owner

VanRoy commented Oct 10, 2017

Hi @xnaud , Unfortunately it's not already implemented. Feel free to submit a PR related to this enhancement.

Thanks.
Julien.

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

No branches or pull requests

2 participants