lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Multiple default search fields or catchall field?
Date Tue, 08 Dec 2009 13:36:15 GMT
See below.

On Tue, Dec 8, 2009 at 3:48 AM, Thomas Koch <> wrote:

> Hi,
> I'm indexing feeds and websites referenced by the feeds. So I have as text
> fields:
> title - from the feed entries title
> description - from the feed entries description
> text - the websites text
> When the user doesn't define a default search field, then all three fields
> should be used for search. And I need to have highlighting. However it
> should
> still be possible to search only in title or description.
> - Do I need a catchall text field with content copied from all text fields?

This is a common way to do this. You could also write custom code to munge
query, but there's no need to go there as a first option, I'd only think
this if you have problems with the catchall approach.

> - Do I need to store the content in the catchall field as well as in the
> individual fields to get highlighting in every case?

No. You don't display the catchall field, so you don't need to store it.

> - Isn't it a big waste of hard disc space to store the content two times?
> Disk space is cheap. It really depends upon how much data you're storing
whether you care. 100M - who cares? 100G - lotsa people care...... But you
don't have to so it's a moot point.


> Thanks for any help,
> Thomas Koch,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message