I still assume that what you mean by "search queries data" is just some
other form of document (in this case containing 1 seach-request per
document)
I'm not sure what you intend to do by that actually, but yes indexing stays
the same (you probably want to mark field "type" as required so you don't
forget to include in in your indexing-program)

2010/7/26 <scr...@asia.com>

>
>  Thanks for you answer! That's great.
>
> Now to index search quieries data is there something special to do? or it
> stay as usual?
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: Geert-Jan Brits <gbr...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Mon, Jul 26, 2010 4:57 pm
> Subject: Re: 2 type of docs in same schema?
>
>
> You can easily have different types of documents in 1 core:
>
> 1. define searchquery as a field(just as the others in your schema)
> 2. define type as a field (this allows you to decide which type of
> documents
> to search for, e.g: "type_normal" or "type_search")
>
> now searching on regular docs becomes:
> q=title:some+title&fq=type:type_normal
>
> and searching for searchqueries becomes (I think this is what you want):
> q=searchquery:bmw+car&fq=type:type_search
>
> Geert-Jan
>
> 2010/7/26 <scr...@asia.com>
>
> >
> >
> >
> >  I need you expertise on this one...
> >
> > We would like to index every search query that is passed in our solr
> engine
> > (same core)
> >
> > Our docs format are like this (already in our schema):
> > title
> > content
> > price
> > category
> > etc...
> >
> > Now how to add "search queries" as a field in our schema? Know that the
> > search queries won't have all the field above?
> > For example:
> > q=bmw car
> > q=car wheels
> > q=moto honda
> > etc...
> >
> > Should we run an other core that only index search queries? or is there a
> > way to do this with same instance and same core?
> >
> > Thanks for your help
> >
> >
> >
>
>
>

Reply via email to