Re: Storing documents with multiple primary keys

2018-06-27 Thread Alexandre Rafalovitch
eDisMax field aliasing? defType=edismax q=sysadmin name:Mike qf=title text last_name first_name f.name.qf=last_name first_name https://lucene.apache.org/solr/guide/7_3/the-extended-dismax-query-parser.html See also: https://github.com/arafalov/solr-indexing-book/blob/master/published/languages/c

Re: Storing documents with multiple primary keys

2018-06-27 Thread Erick Erickson
I have to ask "why can't you just store the second type with the same field names?" Or do they also have fields A, B and C? It's possible to store these in separate _collections_, configured as you see fit and use "collection aliasing" to search them both with a single query, but that won't solve

Storing documents with multiple primary keys

2018-06-27 Thread Grimes, Kevin M (398F)
Hi all, I have a unique situation that I’m not quite sure how to approach. In my current Solr collection, I have documents that look like this: { “fieldA”: 1, “fieldB”: 2, “fieldC”: 3 } We’re adding a new “type” of document, that looks like this: { “fieldD”: 1, “fieldE”: 2, “fieldF”: 3 } The