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(new)?

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

  1. 2005-08-16 04:36:26 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">a leacture</Field>
    <Field name="Author">rossuel</Field>
    <Field name="Content">How to grow old </Field>
    <Field name="PubTime">2002-10-17 </Field>
    <Field name="OtherDesription">a good 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 "grow old"
    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 "leacture"
    no results!
    3:java SearchRunner -i D:\team\weblucenceproject\webapp\WEB-INF\var\myComment\index -f "OtherDesriptionIndex" -k "article"
    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)
< 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.