Hello,
based on wrong results out of cookbook search I tried to use the knife search
on cmdline. Having 2 nodes with same run list containing at least one similar
role the "knife search node “role:foo” doesnt return both nodes. The results
differ from time to time - no result was also in the range.
Checking the nodes via knife node foobar1 edit - you will see the role
assigned.
So I assumed to rebuild the solr index via “knife index rebuild”.
Sometimes we had been successful, sometimes not. Unfortunatly once it is
failing - never again we have a valuebale result.
Now I am lookiung for some hints to troubleshoot and to rebuild the solr index
from scratch (meaning empty index directory) - if possible.
thanks in advance
Thorsten
hi torsten,
as discussed already. please change the field length in the solr config to a really large value look athttps://tickets.opscode.com/browse/CHEF-2346 , restart the solr indexer and do a knife index rebuild. after that it should work.
regards,
olaf 
On 15.01.2014, at 23:03, thorsten.draeger@sap.com wrote:
Hello,
based on wrong results out of cookbook search I tried to use the knife search
on cmdline. Having 2 nodes with same run list containing at least one similar
role the "knife search node "role:foo" doesnt return both nodes. The results
differ from time to time - no result was also in the range.
Checking the nodes via knife node foobar1 edit - you will see the role
assigned.
So I assumed to rebuild the solr index via "knife index rebuild".
Sometimes we had been successful, sometimes not. Unfortunatly once it is
failing - never again we have a valuebale result.
Now I am lookiung for some hints to troubleshoot and to rebuild the solr index
from scratch (meaning empty index directory) - if possible.
thanks in advance
Thorsten