Package org.apache.xindice.core.query.ftsearch

Examples of org.apache.xindice.core.query.ftsearch.Searcher


            int ctxtNode = xctxt.getCurrentNode();
            Node node = xctxt.getDTM(ctxtNode).getNode(ctxtNode);
            NodeListImpl list = new NodeListImpl(null);
            list.add(node);

            Searcher searcher = new Searcher(list, analyzer);
            NodeSet nodes = searcher.search(query);

            return nodes.hasMoreNodes() ? XBoolean.S_TRUE : XBoolean.S_FALSE;
        } catch (ParseException e) {
            throw new TransformerException("Error in text query", e);
        }
View Full Code Here

TOP

Related Classes of org.apache.xindice.core.query.ftsearch.Searcher

Copyright © 2018 www.massapicom. 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.