Skip to main content.
home | support | download

Back to List Archive

Re: Incrmental indexing

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Tue Jul 27 2004 - 14:27:16 GMT
On Tue, Jul 27, 2004 at 06:10:28AM -0700, Peter Karman wrote:
> I indexed a file with the word 'foo' in it. I searched for 'foo' and got 
> that doc. Then I removed the word 'foo' from the doc and re-indexed, 
> adding the -u option. Now a search for 'foo' does not return that doc.

Interesting.  That's either a bug or a feature Jose put in that I
didn't see.

-u was suppose to only "add" words to an index, and indeed it does do
exactly that if you dump the index:

    moseley@bumby:~/swish-e$ echo "foo bar baz" > file
    moseley@bumby:~/swish-e$ src/swish-e -v0 -i file
    moseley@bumby:~/swish-e$ src/swish-e -T index_words

    -----> WORD INFO in index index.swish-e <-----

    bar [1 1 1 (6/9)]

    baz [1 1 1 (7/9)]

    foo [1 1 1 (5/9)]

    moseley@bumby:~/swish-e$ echo "bar baz" > file
    moseley@bumby:~/swish-e$ src/swish-e -v0 -i file -u
    moseley@bumby:~/swish-e$ src/swish-e -T index_words

    -----> WORD INFO in index index.swish-e <-----

    bar [1 1 1 (6/9)] [1 2 1 (5/9)]

    baz [1 1 1 (7/9)] [1 2 1 (6/9)]

    foo [1 1 1 (5/9)]

So "foo" is still in the index.  But, as you say:

    moseley@bumby:~/swish-e$ src/swish-e -w foo
    # SWISH format: 2.5.1
    # Search words: foo
    # Removed stopwords: 
    err: no results
    .

So is that a bug or a feature?  Have to wait for Jose to get back from
vacation -- which might be the entire month of August!

-- 
Bill Moseley
moseley@hank.org

Unsubscribe from or help with the swish-e list: 
   http://swish-e.org/Discussion/

Help with Swish-e:
   http://swish-e.org/current/docs
   swish-e@sunsite.berkeley.edu
Received on Tue Jul 27 07:27:34 2004