File indexing in alfresco solr

677 Views Asked by At

I am using alfresco community 5.0.d and solr4. Is there a way to index a file in alfresco solr manually through web scritps by turning of the solr tracking?. Whenever a file/folder is created or modified can we selectively index only those changes in solr manually with keeping automatic tracking off by solr?.

1

There are 1 best solutions below

6
On BEST ANSWER

I don't know why you're taking the hard way. Solr is ment to follow an Alfresco repo and it's good at it.

Instead use the index aspect to control your content. Take a look here: http://docs.alfresco.com/4.0/concepts/admin-indexes.html Just add a rule or behaviour and set it to default false so it doesn't get indexed.

And when you need to index it, just update the properties.