Package org.sphx.api

Examples of org.sphx.api.SphinxClient.SetServer()


public class Search {
  public static void main (String[] argv) throws IOException, SphinxException {
    String index = "medindex";
    SphinxClient cl = new SphinxClient();

    cl.SetServer ("localhost", 8002);
    //cl.SetWeights (new int[] {100, 1});
    //cl.SetMatchMode (SphinxClient.SPH_MATCH_ANY);
    cl.SetLimits (0, 10);
    cl.SetSortMode (SphinxClient.SPH_SORT_RELEVANCE, "");
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.