lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anuj Kumar <anujs...@gmail.com>
Subject Re: querying in Java
Date Fri, 29 Apr 2011 18:09:36 GMT
Hi Jeff,

In that case, you can create a new index field (set indexed to true and
stored to false) and copy all your fields to it using copyField.
Also make this new field as your default search field.

This will handle your case.

Regards,
Anuj

On Fri, Apr 29, 2011 at 11:36 PM, Saler, Jeff <JSALER@ball.com> wrote:

> Thanks for the reply.  What I want is for the query to search all fields
> for the specified value.
>
> -----Original Message-----
> From: Anuj Kumar [mailto:anujsays@gmail.com]
> Sent: Friday, April 29, 2011 1:51 PM
> To: solr-user@lucene.apache.org
> Subject: Re: querying in Java
>
> Hi Jeff,
>
> In that case, it will query w.r.t default field. What is your default
> search
> field in the schema?
>
> Regards,
> Anuj
>
> On Fri, Apr 29, 2011 at 11:10 PM, Saler, Jeff <JSALER@ball.com> wrote:
>
> > Is there any way to query for data that is in any field, i.e. not
> using
> > a specific field name?
> >
> >
> >
> > For example, when I use the following statements:
> >
> >
> >
> >                SolrQuery  query = new SolrQuery();
> >
> >                Query.setQuery("ANALYST:John Schummers");
> >
> >      QueryResponse  rsp = server.query(query);
> >
> >
> >
> >
> >
> > I get the documents I'm looking for.
> >
> >
> >
> > But I would like to get the same set of documents without using the
> > specific ANALYST field name.
> >
> > I have tried using just "Schummers" as the query, but no documents are
> > returned.
> >
> > The ANALYST field is an indexed field.
> >
> >
> >
> >
> >
> >
> > This message and any enclosures are intended only for the addressee.
> >  Please
> > notify the sender by email if you are not the intended recipient.  If
> you
> > are
> > not the intended recipient, you may not use, copy, disclose, or
> distribute
> > this
> > message or its contents or enclosures to any other person and any such
> > actions
> > may be unlawful.  Ball reserves the right to monitor and review all
> > messages
> > and enclosures sent to or from this email address.
>
>
>
> This message and any enclosures are intended only for the addressee.
>  Please
> notify the sender by email if you are not the intended recipient.  If you
> are
> not the intended recipient, you may not use, copy, disclose, or distribute
> this
> message or its contents or enclosures to any other person and any such
> actions
> may be unlawful.  Ball reserves the right to monitor and review all
> messages
> and enclosures sent to or from this email address.
>

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