Re: MultiSearcher/ParallelSearcher - searching over multiple cores?

2011-08-08 Thread Erick Erickson
I think you'll have to make this go yourself, I don't see how to make
Solr do it for you. And even if it could, the scores aren't comparable,
so combining them for presentation to the user will be interesting

Best
Erick

On Thu, Aug 4, 2011 at 2:27 PM, Ralf Musick ra...@gmx.de wrote:
 Hi Erik,

 I have several types with different properties, but they are supposed to
 be combined to one search.
 Imagine a book with property title and a journal with property name.
 (the types in my project have of course more complex properties.)

 So I created a new core with combined searchfields: field name is indexed,
 title is indexed, some shared properties are indexed like id.
 Further an additional solr field type is created.
 Of course there are several indexer, each per type. A specific type indexer
 stores only the fields of that type and stores further the type information
 eg book.
 After indexing, all types are in the same core.

 To search over all types, the query has to look like that ((title: bla) and
 (type: book)) or ((name: bla) and (type: journal)).

 At least you get books or journal sorted by boost factor - and you have the
 type information as return field to differ the search results.

 I hope it is coherent.

 Thanks for your answer,
  Best Ralf








Re: MultiSearcher/ParallelSearcher - searching over multiple cores?

2011-08-04 Thread Ralf Musick

Hi Erik,

I have several types with different properties, but they are supposed 
to be combined to one search.
Imagine a book with property title and a journal with property name. 
(the types in my project have of course more complex properties.)


So I created a new core with combined searchfields: field name is 
indexed, title is indexed, some shared properties are indexed like id.

Further an additional solr field type is created.
Of course there are several indexer, each per type. A specific type 
indexer stores only the fields of that type and stores further the type 
information eg book.

After indexing, all types are in the same core.

To search over all types, the query has to look like that ((title: bla) 
and (type: book)) or ((name: bla) and (type: journal)).


At least you get books or journal sorted by boost factor - and you have 
the type information as return field to differ the search results.


I hope it is coherent.

Thanks for your answer,
 Best Ralf







Re: MultiSearcher/ParallelSearcher - searching over multiple cores?

2011-08-03 Thread Erick Erickson
As far as I know, you're right. There's no built-in way to do what you want,
especially since the fact that you're talking about different search fields
implies that the scores from the documents aren't comparable anyway. How do
you intend to combine the results for presentation to the user?

Best
Erick
On Aug 2, 2011 5:11 PM, Ralf Musick ra...@gmx.de wrote: