if im not mistaken, the real time get handler uses the "id" field exclusively. I have never seen examples that use a different field then that one. the idea behind it is its a solr given unique value, yonik kind of sheds light on it here:
http://yonik.com/solr/realtime-get/ so why not use the default "id" field itself? On Wed, Mar 15, 2017 at 1:22 PM, Chris Ulicny <culicny@iq.media> wrote: > Sorry, that is a typo. The get is using the iqdocid field. There is no "id" > field defined in the schema. > > solr/TestCollection/get?iqdocid=2957-TV-201604141900 > > solr/TestCollection/select?q=*:*&fq=iqdocid:2957-TV-201604141900 > > On Wed, Mar 15, 2017 at 1:15 PM Erick Erickson <erickerick...@gmail.com> > wrote: > > > Is this a typo or are you trying to use get with an "id" field and > > your filter query uses "iqdocid"? > > > > Best, > > Erick > > > > On Wed, Mar 15, 2017 at 8:31 AM, Chris Ulicny <culicny@iq.media> wrote: > > > Yes, we're using a fixed schema with the iqdocid field set as the > > uniqueKey. > > > > > > On Wed, Mar 15, 2017 at 11:28 AM Alexandre Rafalovitch < > > arafa...@gmail.com> > > > wrote: > > > > > >> What is your uniqueKey? Is it iqdocid? > > >> > > >> Regards, > > >> Alex. > > >> ---- > > >> http://www.solr-start.com/ - Resources for Solr users, new and > > experienced > > >> > > >> > > >> On 15 March 2017 at 11:24, Chris Ulicny <culicny@iq.media> wrote: > > >> > Hi, > > >> > > > >> > I've been trying to use the get handler for a new solr cloud > > collection > > >> we > > >> > are using, and something seems to be amiss. > > >> > > > >> > We are running 6.3.0, so we did not explicitly define the request > > handler > > >> > in the solrconfig since it's supposed to be implicitly defined. We > > also > > >> > have the update log enabled with the default configuration. > > >> > > > >> > Whenever I send a get query for a document already known to be in > the > > >> > collection, I get no documents returned. But when I use a filter > > query on > > >> > the uniqueKey field for the same value I get the document back > > >> > > > >> > solr/TestCollection/get?id=2957-TV-201604141900 > > >> > > > >> > solr/TestCollection/select?q=*:*&fq=iqdocid:2957-TV-201604141900 > > >> > > > >> > Is there some configuration that I am missing? > > >> > > > >> > Thanks, > > >> > Chris > > >> > > >