List Info

Thread: Re: ParseTreeRewriter refactoring




Re: ParseTreeRewriter refactoring
user name
2007-01-11 03:58:00
Hi there,

in the recent days I've been testing the new ZF 0.6.0 which
has some new
cool features (compared to ZF 0.1.0 which we have used
before). Thanks for
the great work!

However, some functions did not work as I expected them to
work, but maybe
you can help me:

1. The search for a phrase such as "word1 word2"
returns no hits, although
this phrase does exist in the index:
	
	$hits = $index->find('"word1 word2"');

However, the search for the phrase "word1" does
work and returns the same
hits as word1 without quotation marks.


2. I built an index containing 3,500 pages. Although I had
optimized the
index using the standard values of merge factor etc. the
search was not
really fast. Do you recommend other values than the default
values to
optimize the index for this amount of elements (which the
documentation
doesn't consider to be large) or does it make sense to
invoke optimize()
several times (and delete index.optimization.lock each
time)? 

It also seems to me that the search time depends on the
number of documents
containing the term:

	Hits		Time
	26		16 sec
	276		13 sec
	3,500 (all)	140 sec

A search time of about 5 seconds would be great.

I wonder if it is possible to set a maximum number of
returned pages in
order to prevent timeouts due to a term which exists in many
documents.
Unfortunately I found nothing in the documentation
concerning this. Anyways,
more than 100 hits are usually not required on a website
search.

Anyone any ideas?

Thanks in advance for your help.

Kind regards,

Natalie Kather
Development

NorthClick GmbH

Gasstr. 10 - 22761 Hamburg
Tel.: 040 8 22 44 999 - Fax: 040 8 22 44 998
Internet: http://northclick.de


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )