Teofilis Martisius wrote:
> 
> I did upgrade to 3.1.12 today, but I don't want to reindex everything. It
> simpy takes too long- LitNet, the accademcal network of Lithuania is very
> slow. I will try to find the cache mode entries with missing url table
> records and erase them somehow. Now I am writing a small & simple tool to
> dump a cache database file in human-readable form. I can mail it to you if
> you want something like this for debugging.


Yes, please do, it will be very useful.


> I examined the cache database file structure (code is sometimes better
> than documentation :) and I have one suggestion. Now it is not possible to
> find out what data is stored in the file (wrd_pos, site_id, tag,
> ...). Would it be possible to include such information in let's say
> UDM_CACHHEADER as a bit-mapped integer? I think it would be useful.
> Btw I think I could write documentation about cache mode database file
> structure :)


Since 3.1.12 we store  this info in header.version field, check this
function:

static int UdmCalcCacheVersion(void);

Files created before 3.1.12 have 0 value in this field.




> Also, I think it is possible to write a tool that converts from one kind
> of database file (f.e. without word_pos) to another (with word_pos) and
> vice versa. Only thing needed is default values that can be put instead of
> real data. For what would be the effect of converting a database that has
> no word_pos at all into a database that has all word_pos set to 0? 

 0 will be OK, however phrase search will not work as expected. I think
that search will consider any words in the same document as a full
phrase,
but I didn't check this.


> I think
> then the database could be reindexed incrementally, without having to
> clear it and wait for a few weeks or months while it reindexes. What do
> you think and should I try to write this tool?

It would be nice. Probably it would be great towrite a converter which
can create
cachemode files back from human readable format, so one could use SQL
dump to create cachemode files from SQL modes.

  Regards.
___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]

Reply via email to