[Xapian-discuss] incremental indexing

Arshavir Grigorian ag at m-cam.com
Tue Jul 19 23:18:12 BST 2005


Hi Arjen,

I am using 0.9.2.

I just tried using the -d flag (-d ignore) and it worked just fine,
though I am not sure what it is considering duplicates since all my 
filenames are unique across all subdirectories. Any ideas? Thanks.



Arshair



Arjen van der Meijden wrote:
> Hi Arshavir,
> 
> Which version of Omega are you using? It is indeed the normal behaviour 
> to add to the index rather than overwrite it. But afaik older versions 
> (pre 0.8.x?) did it the other way around.
> 
> The omindex-tool is pretty simple to understand I think, from what I 
> read from its main-method it really shouldn't overwrite the database 
> when it is not called with -o or --overwrite.
> http://svn.xapian.org/trunk/xapian-applications/omega/omindex.cc?view=markup 
> 
> 
> Best regards,
> 
> Arjen
> 
> On 19-7-2005 22:16, Arshavir Grigorian wrote:
> 
>> Hi,
>>
>> I have a directory which has thousands of subdirectories
>>
>> (/dir_top/dir_sub[n]).
>>
>> I am trying to use omindex to index a few of the subdirectories to see 
>> if it works before I spend the time to index everything. So, I do:
>>
>> omindex --db /var/lib/omega/data/default --url /top /top_dir sub_dir[i]
>> omindex --db /var/lib/omega/data/default --url /top /top_dir sub_dir[j]
>>
>> However, after the second command is done, it deletes the results from 
>> the first index, so all that's left is an index for sub_dir[j]. My 
>> impression from docs/overview.txt (product - large example) was that 
>> the above commands should each add on to the existing index, but I 
>> guess that's not the case.
>> Is there a way to incrementally index different subdirectories under 
>> the same tree?
>>
>> I also just tried the following, but that did the same thing:
>>
>> omindex --db /var/lib/omega/data/default --url /top/sub_dir[i] \
>> /top_dir/sub_dir[i]
>>
>> omindex --db /var/lib/omega/data/default --url /top/sub_dir[j] \ 
>> /top_dir/sub_dir[j]
>>
>>
>> Many thanks for any advice/pointers.
>>
>>
>>



More information about the Xapian-discuss mailing list