dse cassandra solr doesnt return _uniqueKey in response -


im using datastax 4.6. solr client queries data using _uniquekey. version 4.6 limitation using simple primary key removed. how can configure solr or create table in cassandra, receive in solr response information synthetic key _uniquekey. there no problem when use compound keys, simple.

drop table if exists unitable; create table if not exists unitable (     "depid" int primary key,     "parentid" int,     "name" text ); 

insert unitable ( "depid", "parentid", "name" ) values ( 689, 2, 'test' );

<?xml version="1.0" encoding="utf-8" standalone="no"?> <schema name="autosolrschema" version="1.5"> <types> <fieldtype class="org.apache.solr.schema.trieintfield" name="trieintfield"/> <fieldtype class="org.apache.solr.schema.textfield" name="textfield"> <analyzer> <tokenizer class="solr.standardtokenizerfactory"/> <filter class="solr.lowercasefilterfactory"/> </analyzer> </fieldtype> </types> <fields> <field indexed="true" multivalued="false" name="depid" stored="true" type="trieintfield"/> <field indexed="true" multivalued="false" name="name" stored="true" type="textfield"/> <field indexed="true" multivalued="false" name="parentid" stored="true" type="trieintfield"/> </fields> <uniquekey>depid</uniquekey> </schema> 

no _uniquekey in response

<response>  <lst name="responseheader">   <int name="status">0</int>   <int name="qtime">5</int> </lst> <result name="response" numfound="1" start="0" maxscore="1.0">   <doc>     <int name="depid">689</int>     <str name="name">test</str>     <int name="parentid">2</int></doc> </result> </response> 

the synthetic _uniquekey field generated , returned when using compound keys; in case of simple keys, key field directly used.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -