Saurabh Vasekar wrote on 6/21/12 3:01 PM: > Hi Peter, > > Thanks a lot for your help. > > Actually I am reading the fields to be indexed from a database and then > creating > an index on these fields. I am able to perform all the other searches but > this one. >
one other note: in testing all this, I used the 'swish3' tool that comes with SWISH::Prog::Lucy. It is a cli that makes indexing and searching very simple. No code to write. Just a config file. E.g.: [karpet@pekmac:~/tmp/prox]$ cat doc.xml <doc> <content>jakarta is near apache</content> </doc> [karpet@pekmac:~/tmp/prox]$ cat conf MetaNames content PropertyNames content [karpet@pekmac:~/tmp/prox]$ swish3 -c conf -F lucy -i doc.xml 1 documents in 00:00:01 [karpet@pekmac:~/tmp/prox]$ swish3 -q 'content:"jakarta apache"~4' # swish3 version 3.0.12 # Format: Lucy # Query: content:"jakarta apache"~4 # Hits: 1 # Search time: 0.0253 306 doc.xml "" . -- Peter Karman . http://peknet.com/ . [email protected]
