Hi,

I'm looking for "best practices" advise on index building

I have two types of documents I need to index, let's say type A and B.
I have 2 million documents of type A and 10,000 of type B
I can see 3 options when it comes to building my index:

Option 1.
Add both document types to one index, without adding a document type field.
As long as field names are unique, there are no problems. When I search for
fields from doc type A, I get the right answers, same for type B

Option 2.
Add both document types to one index, but add a document type field. Then
specify document type field to each query (or have a filter on document
type).

Option 3.
Build 2 indexes, one for each document type. Have two IndexSearchers, one
for each index.

So, which is the best option, from both performance and design perspectives?

Regards,
Art

Reply via email to