manifoldcf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Fornasari <f.fornas...@tai.it>
Subject Alfresco + ManifoldCF + ElasticSearch index mapping
Date Fri, 31 Jul 2015 13:02:37 GMT

Dear All,
we're newbie about ManifoldCF and ElasticSearch.

We configured successfully the ManifoldCF + ElasticSearch + Alfresco
5.0.1 architecture. But, we aren't able to get metadata from
ElasticSearch index.

In details:

1) we configured a cmis query in ManifoldCF "SELECT mcf:numeromittente,
mcf:pagine FROM mcf:fax" for the job crowler.
2) the job works right and founds documents.
3) we configured the elastic search index mapping,
http://manifoldcf-es.tainet:9200/index/generictype/_mapping :

{
  "generictype" : {
    "properties" : {
      "mcf:numeromittente" : {
        "type" : "string"
      },
      "mcf:pagine" : {
        "type" : "integer"
      }
    }
  }
}

4) the http://manifoldcf-es.tainet:9200/index/generictype/_mapping API
returns a JSON that includes all subset of properties

{"properties":{"_content":{"type":"string"},"_content_type":{"type":"string"},"_name":{"type":"string"}}},"mcf:numeromittente":{"type":"string"},"mcf:pagine":{"type":"integer"}}}}


5) we call the
http://manifoldcf-es.tainet:9200/index/generictype/_search API :

{
    "query": {
        "query_string": {
            "query": "v2.5.6_ReleaseNotes.txt",
            "fields": []
        }
    }
}

but the API returns a JSON that doesn't contain mcf property values:

"file" : {"_content_type" : "text\/plain","_name" :
"v2.5.6_ReleaseNotes.txt", "_content" : "...." }

So, could you explain us how we can include into the elasitc search
query result also mcf:numeromittente and mcf:pagine properties?

There is something wrong in your ManifoldCF configuration?

Regards,
Francesco.


	




Mime
View raw message