mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Another dirty trick to eliminate the last unnecessary lookup during indexing snapshots.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6124 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -716,7 +716,19 @@ public class AVMLuceneIndexerImpl extends AbstractLuceneIndexerImpl<String> impl
|
|||||||
}
|
}
|
||||||
doc.add(new Field(attributeName + ".locale", locale.toString().toLowerCase(), Field.Store.NO, Field.Index.UN_TOKENIZED, Field.TermVector.NO));
|
doc.add(new Field(attributeName + ".locale", locale.toString().toLowerCase(), Field.Store.NO, Field.Index.UN_TOKENIZED, Field.TermVector.NO));
|
||||||
|
|
||||||
ContentReader reader = contentService.getReader(banana, propertyName);
|
ContentReader reader = null;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
reader = contentService.getRawReader(contentData.getContentUrl());
|
||||||
|
reader.setEncoding(contentData.getEncoding());
|
||||||
|
reader.setLocale(contentData.getLocale());
|
||||||
|
reader.setMimetype(contentData.getMimetype());
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
reader = null;
|
||||||
|
}
|
||||||
|
// ContentReader reader = contentService.getReader(banana, propertyName);
|
||||||
if (reader != null && reader.exists())
|
if (reader != null && reader.exists())
|
||||||
{
|
{
|
||||||
boolean readerReady = true;
|
boolean readerReady = true;
|
||||||
|
Reference in New Issue
Block a user