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