On Mon, Jan 16, 2006 at 08:47:46AM -0800, Carmelo Carchedi wrote:
> If I need to search document by year in a lot of XML files,
> is it better to search using -L 20050000 20051231 in a date field like
> <date_doc>20051221</date_doc>
> or using year_doc=(2005) in a filed like <year_doc>2005</year_doc>
You might want to test both, but I suspect searching by a pre-set year
is much better.
The first (using -L) has to fetch all the results, basically sorts
them by year and then removes the ones that don't match. But the
second option uses an index to only select the records with that year.
--
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 Mon Jan 16 09:13:33 2006