mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-10 14:11:25 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
77234: Merged PLATFORM1 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 76041: Support for ACE-2077 SOLR 4 - Store content, metadata doc & fields for reindex & highlighting - fix up to include content data id git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@78090 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -13,14 +13,16 @@ public class ContentPropertyValue extends PropertyValue
|
|||||||
private long length;
|
private long length;
|
||||||
private String encoding;
|
private String encoding;
|
||||||
private String mimetype;
|
private String mimetype;
|
||||||
|
private Long id;
|
||||||
|
|
||||||
public ContentPropertyValue(Locale locale, long length, String encoding, String mimetype)
|
public ContentPropertyValue(Locale locale, long length, String encoding, String mimetype, Long id)
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
this.locale = locale;
|
this.locale = locale;
|
||||||
this.length = length;
|
this.length = length;
|
||||||
this.encoding = encoding;
|
this.encoding = encoding;
|
||||||
this.mimetype = mimetype;
|
this.mimetype = mimetype;
|
||||||
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getEncoding()
|
public String getEncoding()
|
||||||
@@ -43,10 +45,15 @@ public class ContentPropertyValue extends PropertyValue
|
|||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
return "ContentPropertyValue [locale=" + locale + ", length=" + length + ", encoding="
|
return "ContentPropertyValue [locale=" + locale + ", length=" + length + ", encoding="
|
||||||
+ encoding + ", mimetype=" + mimetype + "]";
|
+ encoding + ", mimetype=" + mimetype + ", id="+id+"]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -650,7 +650,9 @@ public class SOLRAPIClient
|
|||||||
String encoding = o.has("encoding") ? o.getString("encoding") : null;
|
String encoding = o.has("encoding") ? o.getString("encoding") : null;
|
||||||
String mimetype = o.has("mimetype") ? o.getString("mimetype") : null;
|
String mimetype = o.has("mimetype") ? o.getString("mimetype") : null;
|
||||||
|
|
||||||
ret = new ContentPropertyValue(locale, size, encoding, mimetype);
|
Long id = o.has("contentId") ? o.getLong("contentId") : null;
|
||||||
|
|
||||||
|
ret = new ContentPropertyValue(locale, size, encoding, mimetype, id);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user