lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shalin Shekhar Mangar" <shalinman...@gmail.com>
Subject Re: Can defaultSearchField be all fields?
Date Fri, 11 Jul 2008 14:49:07 GMT
Hi Ian,

No, the * syntax you mentioned is not supported. However, there are a
couple of ways of achieving this.

1. Create a copyField which has all the content and search on that --
as you mentioned
2. You can use dismax and add all the fields as the search field
parameter either in the request of the defaults section in
solrconfig.xml
3. You can explictly search for all fields by field:value syntax

To get all terms, you can use the facet.field for all fields and get
all the terms. However, I'm not able to understand the use-case for
this.

On Fri, Jul 11, 2008 at 5:12 PM, Ian Connor <ian.connor@gmail.com> wrote:
>
> Is it possible to have all fields being searched by default?
> <defaultSearchField>*</defaultSearchField> or something like that.
>
> An alternative, is if there is some lucene query that will give me all
> fields "*:term".
>
> My final, more redundant alternative is to create a field called
> "all_fields" and put everything in there at the end to be the
> defaultSearchField.
>
> Thanks for any advice,
> Ian Connor



--
Regards,
Shalin Shekhar Mangar.

Mime
View raw message