From: SourceForge.net <no...@so...> - 2005-09-29 14:57:13
|
Support Requests item #1306968, was opened at 2005-09-28 14:34 Message generated for change (Comment added) made by schwingm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391880&aid=1306968&group_id=27895 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Open Priority: 5 Submitted By: Maximilian Schwinger (schwingm) Assigned to: Nobody/Anonymous (nobody) Summary: tologx/query-engine - probs with value-like Initial Comment: I try to perform a value-like - query. Therefore I wanted to register a FullTextIndex. My Problem: How can I do this: At first I need an IndexProvider, which I can initialise with my topicMap. After that I have to register the IndexProvider in the TopicMap's IndexManager. How can I get an IndexProvider? ---------------------------------------------------------------------- >Comment By: Maximilian Schwinger (schwingm) Date: 2005-09-29 14:57 Message: Logged In: YES user_id=1055019 Thank you!! So far it's working now. My next problem is to perform a query. I tried to perform this one (from accountingontology.com): select $TOPIC from topic-name($TOPIC, $NAME), value-like ($NAME, "test") ? and get the following stack-trace: org.tm4j.tologx.TologParserException: Error parsing query string. at org.tm4j.tologx.memory.QueryEvaluatorImpl.prepareQuery (QueryEvaluator Impl.java:156) at CommandReceiver.performQuery (CommandReceiver.java:36) at test.main(test.java:41) Caused by: line 1:65: unexpected token: "test" at org.tm4j.tologx.parser.TologParser.expr (TologParser.java:1258) at org.tm4j.tologx.parser.TologParser.pair (TologParser.java:1165) at org.tm4j.tologx.parser.TologParser.predclause (TologParser.java:1099) at org.tm4j.tologx.parser.TologParser.clause (TologParser.java:800) at org.tm4j.tologx.parser.TologParser.clauselist (TologParser.java:457) at org.tm4j.tologx.parser.TologParser.query (TologParser.java:512) at org.tm4j.tologx.memory.QueryEvaluatorImpl.prepareQuery (QueryEvaluator Impl.java:152) ---------------------------------------------------------------------- Comment By: Kal Ahmed (kal_ahmed) Date: 2005-09-28 19:27 Message: Logged In: YES user_id=176992 You need to instantiate the class org.tm4j.topicmap.memory.index.LuceneFullTextIndexProvider, and then pass that instance into the registerIndexProvider method on the IndexManager. Note that you need to pass a Properties instance in to the constructor of the LuceneFullTextIndexProvider. The properties that are recognised are documented in the class org.tm4j.topicmap.index.text.LuceneIndexBase ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391880&aid=1306968&group_id=27895 |