Examples of preference()


Examples of org.elasticsearch.action.suggest.SuggestRequest.preference()

            } else {
                throw new ElasticsearchIllegalArgumentException("no content or source provided to execute suggestion");
            }
        }
        suggestRequest.routing(request.param("routing"));
        suggestRequest.preference(request.param("preference"));

        client.suggest(suggestRequest, new RestBuilderListener<SuggestResponse>(channel) {
            @Override
            public RestResponse buildResponse(SuggestResponse response, XContentBuilder builder) throws Exception {
                builder.startObject();
View Full Code Here

Examples of org.grouplens.lenskit.data.snapshot.PackedPreferenceData.preference()

        // create an internal PRD so we can use preferences
        PackedPreferenceData tmpPack = internalBuild();
        // create an internal flyweight
        // after this point, this method does no allocation
        PackedPreferenceData.IndirectPreference pref = tmpPack.preference(-1);

        /*
         * we have to do this backwards so we don't copy free slots from the
         * end of the arrays. So, we first create an array of free indices
         * in reverse order (the greatest index is first).
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.