Package org.sphx.api

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


                Scanner scan = new Scanner(new File("../queries.txt"));
                String queryString;

                while (scan.hasNextLine()) {
                        queryString = scan.nextLine().trim();
            SphinxResult res = cl.Query(queryString, index);

            for (int i = 0; i < res.matches.length; i++) {
              SphinxMatch info = res.matches[i];
              System.out.println (queryString + " " + info.docId);
            }
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.