If you do want a composite key in Solr, you could use an update request 
processor script to make it out of the multiple fields.

wunder
Walter Underwood
wun...@wunderwood.org
http://observer.wunderwood.org/  (my blog)


> On Apr 29, 2017, at 11:02 AM, Yonik Seeley <ysee...@gmail.com> wrote:
> 
> On Sat, Apr 29, 2017 at 1:45 PM, Dorian Hoxha <dorian.ho...@gmail.com> wrote:
>> @Yonik
>> 
>> Thanks makes sense. So this means that the 'id' need to be indexed(is
>> always?), (so you can get/update/delete docs not in translog), right ?
> 
> In Solr, yes.  In Lucene, only if you want lookup-by-id to be fast, or
> if you want to use updateDocument with an indexed term for overwriting
> documents.
> 
> -Yonik
> 
> 
>> On Sat, Apr 29, 2017 at 7:24 PM, Yonik Seeley <ysee...@gmail.com> wrote:
>>> 
>>> Solr doesn't use Lucene for RT GET, it uses it's transaction log.
>>> Only when the document is not found in the transaction log will it go
>>> and consult the lucene index (which can only search as of the last
>>> commit).
>>> 
>>> -Yonik
>>> 
>>> On Sat, Apr 29, 2017 at 12:57 PM, Dorian Hoxha <dorian.ho...@gmail.com>
>>> wrote:
>>>> I know all that. My point is, lucene is NRT, while GET is RT (in both
>>>> ES/SOLR). How does lucene return the right document (Term Query) before
>>>> doing a commit on GET ?
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
>>> For additional commands, e-mail: dev-h...@lucene.apache.org
>>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: dev-h...@lucene.apache.org
> 

Reply via email to