From: Palmer, E. <ep...@ri...> - 2010-08-03 21:12:49
|
Hello all, I must be doing something dumb but I can't seem to get simple full text searching working with lucene. The collection.xconf file <collection xmlns="http://exist-db.org/collection-config/1.0"> <index> <lucene> <analyzer class="org.apache.lucene.analysis.standard.StandardAnalyzer"/> <TEXT qname="departmentName"/> <TEXT qname="deptName"/> <TEXT qname="deptDescription"/> <TEXT qname="title"/> <TEXT qname="@positionTitle"/> <ngram qname="speciality"/> </lucene> <!-- range indexes --> <create qname="@netid" type="xs:string"/> <create qname="@positionId" type="xs:string"/> <!-- ngram indexes, case insensitive --> <ngram qname="first"/> <ngram qname="last"/> <ngram qname="@first"/> <ngram qname="@last"/> </index> </collection> When I reindex the collection the exist.log file shows these lucene related messages 2010-08-03 14:55:04,814 [P1-16] DEBUG (LuceneIndexWorker.java [removeCollection]:230) - Removing collection /db/people 2010-08-03 14:55:04,822 [P1-16] DEBUG (LuceneIndexWorker.java [removeCollection]:249) - Collection removed. 2010-08-03 14:55:04,885 [P1-16] DEBUG (LuceneIndexWorker.java [removeCollection]:230) - Removing collection /db/people/position 2010-08-03 14:55:04,895 [P1-16] DEBUG (LuceneIndexWorker.java [removeCollection]:249) - Collection removed. 2010-08-03 14:55:05,307 [P1-16] DEBUG (LuceneIndexWorker.java [removeCollection]:230) - Removing collection /db/people/person 2010-08-03 14:55:05,317 [P1-16] DEBUG (LuceneIndexWorker.java [removeCollection]:249) - Collection removed. 2010-08-03 14:55:13,182 [P1-16] DEBUG (LuceneIndexWorker.java [removeCollection]:230) - Removing collection /db/people/bios 2010-08-03 14:55:13,193 [P1-16] DEBUG (LuceneIndexWorker.java [removeCollection]:249) - Collection removed. I don't see any lucence index creation log entries The files in /usr/local/exist/webapp/WEB-INF/data/lucene all have dates before the dates in the log entries this query runs in the admin client query dialog and shows all the titles for $x in collection("/db/people/person")//title return $x <title/> <title/> <title>8:15 Sr Barista/Cashier</title> <title>Bio Lab Teaching Assistant</title> <title>Sum Research Stipend-Grainger</title> <title/> <title/> <title>Student Temporary Worker</title> ... this query returns no results and no errors. for $x in collection("/db/people/person")//title[ft:query(.,'bio')] return $x How do I diagnose this? Thanks in advance for your help.... Eric Palmer University of Richmond |