Hi guys,
I have one question for you.
looking in the details of the SolrConnector it's possible to see that :
org.apache.manifoldcf.agents.output.solr.HttpPoster
writeField(out,LITERAL+newFieldName,values);
// Write the commitWithin parameter
if (commitWithin != null)
writeField(out,COMMITWITHIN_METADATA,commitWithin);
contentStreamUpdateRequest.setParams(out);
contentStreamUpdateRequest.addContentStream(new
RepositoryDocumentStream(is,length,contentType,contentName));
In a Job using a Solr connector, it's possible to express the metadata
mapping, mapping specific metadata to solr field names.
But if you select only 3 mappings , what is happening is that all the
metadata in the manifold document are sent as params of the
contentStreamRequest and the mapping is used only to rename the fields we
want to rename .
In my opinion the mapping should be use as a filter as well.
Because if the user select only 3 metadata, he wants to see only those
metadata.
probably should be present at least a flag that allow the user to filter
the metadata sent to solr or not.
A little change that can solve a lot of use cases when the user is
interested only in a subset of metadata and does not need to send
everithing in the header of the http POST.
I'm pretty new to ManifoldCF so let me know if this feature is already
there and I misunderstood something .
Cheers
--
--------------------------
Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti
"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"
William Blake - Songs of Experience -1794 England