2005-08-16 04:28:14 UTC
I use the WebLucene 0.6.
It run well when I tried to use the test as the readme told me to do,
but It fail to return the results I expected when I try to do some change to it.
my datasource file is below
myComment.xml
<Record id="1">
<Field name="Url">http://www.blogchina.com/new/display/1409.html</Field>
<Field name="Title">一位浙大教授的激情演讲 </Field>
<Field name="Author">怒发冲冠</Field>
<Field name="Content">真的猛士 </Field>
<Field name="PubTime">2002-10-17 </Field>
<Field name="OtherDesription">article</Field>
<Index name="FullIndex">Content,Author</Index>
<Index name="MoreIndex">Content,Author,Url</Index>
<Index name="TitleIndex">Title</Index>
<Index name="OtherDesriptionIndex">OtherDesription</Index>
</Record>
after I indexed the source myComment.xml successfully!
java IndexRunner -i D:\team\weblucenceproject\dump\myComment.xml -o D:\team\weblucenceproject\webapp\WEB-INF\var\myComment
I tried
1:java SearchRunner -i D:\team\weblucenceproject\webapp\WEB-INF\var\myComment\index -f "FullIndex" -k "真的猛士"
run successfully as I expected.
2:java SearchRunner -i D:\team\weblucenceproject\webapp\WEB-INF\var\myComment\index -f "MoreIndex" -k "
http://www.blogchina.com"
no results !
3:java SearchRunner -i D:\team\weblucenceproject\webapp\WEB-INF\var\myComment\index -f "TitleIndex" -k "一位浙大教授的激情演讲"
no results!
3:java SearchRunner -i D:\team\weblucenceproject\webapp\WEB-INF\var\myComment\index -f "OtherDesriptionIndex" -k "OtherDesriptionIndex"
no results!
can anybody tell me why,why I cant get the result I expected?(I had expected that every test can get the record)appreciate for help.