<div class="gmail_quote">On Thu, Jun 28, 2012 at 3:14 PM, Mona Wong <span dir="ltr"><<a href="mailto:mona@sdsc.edu" target="_blank">mona@sdsc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi:<br>
<br>
How do I programmatically store metadata into Midas?<br>
<br>
I see the web API has midas.item.getmetadata and there is also midas.resource.search but midas.item.create doesn't seem to take a metadata argument. By the way, does midas.resource.search search for metadata or something else? Is a file consider a resource or does midas.resource.search return other types of objects<br>
</blockquote><div><br></div><div>As Michael said, we have recently rewritten a lot of our search code to make simple searching very effective. One thing that is still not quite there is our "advanced" search capabilities, which will allow you to search by specific metadata fields using Lucene syntax. Right now, all we have is a simplified version that searches through the list of all metadata *values*, but does not filter the search by specific metadata fields.</div>
<div><br></div><div>So if you had a piece of metadata with the Element "foo" and the value "bar", and did a search (through the API or the web interface) for "bar", you would get a hit on that item, but if you did a search for "foo", you would not. There is currently an outstanding issue in our tracker for adding in the advanced search interface, and I imagine we can work it in as part of the current effort.</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Zach </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Mona<br>
<br>
*********************************************<br>
Mona Wong<br>
Web & iPad Application Developer<br>
San Diego Supercomputer Center<br>
<br>
You are the light you wish to see.<br>
*********************************************<br>
<br>
<br>
<br>
_______________________________________________<br>
Midas mailing list<br>
<a href="mailto:Midas@public.kitware.com">Midas@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/midas" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/midas</a><br>
</blockquote></div><br><br>