Context suggester with weights


(radhe) #1

I want to use context suggester with weights
My Index:

        POST skg/_doc/
        {
            "suggest": {
                "input": ["san fisco","fisco"],
                "contexts": {
                    "userid": ["96988658","96320800","65982461","65912563", "65906989"],
                    "area" : ["a1","a2","a3","a4"]
                }
            }
        }

Is it possible to have weight for every user id so that if search is done in multiple documents for a particular user, based on weights order of documents can be sorted?


(radhe) #2

Not a single reply, why?


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.