Share

WebLucene

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

why cannot find result I expected?

You are viewing a single message from this topic. View all messages.

  1. 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">&#19968;&#20301;&#27993;&#22823;&#25945;&#25480;&#30340;&#28608;&#24773;&#28436;&#35762; </Field>
    <Field name="Author">&#24594;&#21457;&#20914;&#20896;</Field>
    <Field name="Content">&#30495;&#30340;&#29467;&#22763; </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 "&#30495;&#30340;&#29467;&#22763;"
    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 "&#19968;&#20301;&#27993;&#22823;&#25945;&#25480;&#30340;&#28608;&#24773;&#28436;&#35762;"
    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.

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.