spring-data-jest icon indicating copy to clipboard operation
spring-data-jest copied to clipboard

Question: how to build a suggestion query

Open xnaud opened this issue 8 years ago • 1 comments

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
    		}
    	}
    }
}

xnaud avatar Oct 05 '17 16:10 xnaud

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

Thanks. Julien.

VanRoy avatar Oct 10 '17 18:10 VanRoy