All,

I was wondering if it is possible to do a solr update by doing something like 
the following:



JSON:



{

  "add":{

    "doc":{

      "id_txt":"_query_:{q=title_txt:test.jpg fl=id_txt}",

      "title_txt": {"set":"Maybe"},

      "location_geo": {"set":"POINT(-108.5491667 57.71194444)"}

    }

  }

}



XML:


<add>

 <doc>

  <field name="id_txt"><query>q=title_txt:test.jpg fl=id_txt</query></field>

  <field name="title_txt" update="set">Maybe</field>

  <field name = "location_geo" update="set">POINT(-108.5491667 
57.71194444)</field>

 </doc>

</add>


I need to be able to do a nested query to get the unique id since I do not know 
it without performing a query.

Stan Goston
Software Engineer
Lockheed Martin - RMS
Phone: 303-932-4543

Reply via email to