<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Indexing JSON in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/indexing-json/m-p/268713#M221843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have JSON objects stored in my repository, but none of them are indexed - which would be *really* useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't want to convert the to text/plain, I just want them indexed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I do a search for +TEXT:"nint" - they are all listed, and when I list /alfresco/service/mimetypes, sure enough, application/json is listed as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No extractors&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Transformable To: Cannot be transformed into anything else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Transformable From: Cannot be generated from anything else&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I fix that - it just needs to be transformed in text/plain to get indexed surely?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2011 14:18:47 GMT</pubDate>
    <dc:creator>tgmweb</dc:creator>
    <dc:date>2011-12-09T14:18:47Z</dc:date>
    <item>
      <title>Indexing JSON</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/indexing-json/m-p/268713#M221843</link>
      <description>I have JSON objects stored in my repository, but none of them are indexed - which would be *really* useful.I don't want to convert the to text/plain, I just want them indexed. When I do a search for +TEXT:"nint" - they are all listed, and when I list /alfresco/service/mimetypes, sure enough, applica</description>
      <pubDate>Fri, 09 Dec 2011 14:18:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/indexing-json/m-p/268713#M221843</guid>
      <dc:creator>tgmweb</dc:creator>
      <dc:date>2011-12-09T14:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing JSON</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/indexing-json/m-p/268714#M221844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes you could simply index the JSON as plain text.&amp;nbsp;&amp;nbsp; However you are still searching by full text.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another approach that may (or may not) be applicable is to have a metadata extractor that reads your JSON data and stores your important values as properties,&amp;nbsp;&amp;nbsp; that way you are not using text comparison.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 14:42:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/indexing-json/m-p/268714#M221844</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2011-12-09T14:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing JSON</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/indexing-json/m-p/268715#M221845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply. You're probably right, it would be nice to search on a key and not just plain text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought I could do this manually using webscripts (extracting the json object and manually creating the "properties"), but it appears the JSON object is only available when the webscript receives an application/json request header. Is that right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The docs state: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The JSON Object API provides the ability to programmatically traverse JSON documents, where the root of the document is either a JSON array or a JSON object. The Web Script Framework, if instructed, supplies one of two root object type named json to the web script, depending on the root of the JSON document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"If instructed": how do I "instruct" the webscript to include those root objects? It's obviously instructed automatically where the request header has application/json, but can I "instruct it" myself?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't want to send the script any json, because the json object is actually in the repository already.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 15:39:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/indexing-json/m-p/268715#M221845</guid>
      <dc:creator>tgmweb</dc:creator>
      <dc:date>2011-12-09T15:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing JSON</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/indexing-json/m-p/268716#M221846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just in a rare case that anyone is interested, whilst I couldn't see a way to get the JSON object using the built ins, I could convert the json content into a native javascript object by doing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;jsObject = jsonUtils.toObject(node.properties["cm:content"].getContent());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could then loop through the object and add the key/values manually.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 16:36:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/indexing-json/m-p/268716#M221846</guid>
      <dc:creator>tgmweb</dc:creator>
      <dc:date>2011-12-09T16:36:36Z</dc:date>
    </item>
  </channel>
</rss>

