You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by su...@apache.org on 2012/08/09 15:08:56 UTC

svn commit: r1371191 [2/2] - in /incubator/stanbol/branches/contenthub-two-layered-structure/contenthub: bundlelist/src/main/bundles/ defaults/src/main/resources/config/ index/ index/src/main/java/org/apache/stanbol/contenthub/index/ldpath/ index/src/m...

Modified: incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/web/src/main/resources/org/apache/stanbol/contenthub/web/templates/imports/doc/indexLdpathRestApi.ftl
URL: http://svn.apache.org/viewvc/incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/web/src/main/resources/org/apache/stanbol/contenthub/web/templates/imports/doc/indexLdpathRestApi.ftl?rev=1371191&r1=1371190&r2=1371191&view=diff
==============================================================================
--- incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/web/src/main/resources/org/apache/stanbol/contenthub/web/templates/imports/doc/indexLdpathRestApi.ftl (original)
+++ incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/web/src/main/resources/org/apache/stanbol/contenthub/web/templates/imports/doc/indexLdpathRestApi.ftl Thu Aug  9 13:08:55 2012
@@ -18,9 +18,11 @@
       <b>name:</b> The name identifying the index<br>
       <b>description:</b> Description of the index<br>
       <b>program:</b> LDPath program that will be used as a source to create the semantic index. Index fields and Solr specific configurations regarding those index fields are given in this parameter.<br>
-      <b>batchsize:</b> Maximum number of changes to be returned<br>
-      <b>storecheckperiod:</b> Time to check changes in the Contenthub Store in second units<br>
-      <b>solrchecktime:</b> Maximum time in seconds to wait for the availability of the Solr Server<br>
+      <b>indexContent:</b> If this configuration is true plain text content of the ContentItem is also indexed to be used in the full text search
+      <b>batchSize:</b> Maximum number of changes to be returned<br>
+      <b>indexingSourceName:</b> Name of the IndexingSource instance to be checked for updates<br>
+      <b>indexingSourceCheckPeriod:</b> Time to check changes in the Contenthub Store in second units<br>
+      <b>solrCheckTime:</b> Maximum time in seconds to wait for the availability of the Solr Server<br>
       <b>ranking:</b> To be able to use other SemanticIndex implementations rather than this, Service Ranking property of other implementations should be set higher than of this one
     </td>
   </tr>

Modified: incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/web/src/main/resources/org/apache/stanbol/contenthub/web/templates/org/apache/stanbol/contenthub/web/resources/LDPathSemanticIndexResource/index.ftl
URL: http://svn.apache.org/viewvc/incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/web/src/main/resources/org/apache/stanbol/contenthub/web/templates/org/apache/stanbol/contenthub/web/resources/LDPathSemanticIndexResource/index.ftl?rev=1371191&r1=1371190&r2=1371191&view=diff
==============================================================================
--- incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/web/src/main/resources/org/apache/stanbol/contenthub/web/templates/org/apache/stanbol/contenthub/web/resources/LDPathSemanticIndexResource/index.ftl (original)
+++ incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/web/src/main/resources/org/apache/stanbol/contenthub/web/templates/org/apache/stanbol/contenthub/web/resources/LDPathSemanticIndexResource/index.ftl Thu Aug  9 13:08:55 2012
@@ -29,7 +29,8 @@
           <th>Description</th>
           <th>Index Content</th>
           <th>Batch Size</th>
-          <th>Store Check Period</th>
+          <th>Indexing Source Name</th>
+          <th>Indexing Source Check Period</th>
           <th>Solr Check Time</th>
           <th>Program</th>
         </tr>
@@ -74,8 +75,14 @@
     <p><input type="text" id="batchsizeText" value="10" /></p>
     
     <p>
-      <b>Store Check Period: </b>
-      <font size=1>(Time to check changes in the Contenthub  Store in second units)</font>
+      <b>Indexing Source Name: </b>
+      <font size=1>(Name of the ndexingSource instance to be checked for updates)</font>
+    </p>
+    <p><input type="text" id="indexingSourceNameText" value="contenthubFileStore" /></p>
+    
+    <p>
+      <b>Indexing Source Check Period: </b>
+      <font size=1>(Time to check changes in the IndexingSource in second units)</font>
     </p>
     <p><input type="text" id="storecheckperiodText" value="20" /></p>
     
@@ -113,6 +120,7 @@
           var description = $.trim($("#descriptionText").val());
           var indexContent = $("#indexContentCheckBox").is(':checked');
           var batchsize = $.trim($("#batchsizeText").val());
+          var indexingSource = $.trim($("#indexingSourceNameText").val());
           var storecheckperiod = $.trim($("#storecheckperiodText").val());
           var solrchecktime = $.trim($("#solrchecktimeText").val());
           var ranking = $.trim($("#rankingText").val());
@@ -127,7 +135,7 @@
           $.ajax({
               url: "${it.publicBaseUri}contenthub/index/ldpath",
               type: "POST",
-              data: { name: name, description: description, indexContent: indexContent, batchsize: batchsize, storecheckperiod: storecheckperiod, solrchecktime: solrchecktime, ranking: ranking, program: program },
+              data: { name: name, description: description, indexContent: indexContent, batchSize: batchsize, indexingSourceName: indexingSource, indexingSourceCheckPeriod: storecheckperiod, solrCheckTime: solrchecktime, ranking: ranking, program: program },
               success: function() {
                   $(".waitingDiv").hide();
                   $("#submittedPrograms").load("${it.publicBaseUri}contenthub/index/ldpath #submittedPrograms>table");
@@ -135,6 +143,7 @@
                   $("#descriptionText").attr("value", "");
                   $("#indexContentCheckBox").attr("checked", true);
                   $("#batchsizeText").attr("value", "10");
+                  $("#indexingSourceNameText").attr("value", "contenthubFileStore");
                   $("#storecheckperiodText").attr("value", "20");
                   $("#solrchecktimeText").attr("value", "5");
                   $("#rankingText").attr("value", "0");