mirror of https://github.com/apache/lucene.git
reverting an accidental commit 1684395
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1684409 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
016db179e4
commit
958695884c
|
@ -43,7 +43,7 @@ import org.apache.solr.schema.TrieField;
|
|||
* it all with bytes, to not change any wire serialization etc.
|
||||
*/
|
||||
class GroupConverter {
|
||||
|
||||
|
||||
static Collection<SearchGroup<BytesRef>> fromMutable(SchemaField field, Collection<SearchGroup<MutableValue>> values) {
|
||||
if (values == null) {
|
||||
return null;
|
||||
|
@ -64,7 +64,7 @@ class GroupConverter {
|
|||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
static Collection<SearchGroup<MutableValue>> toMutable(SchemaField field, Collection<SearchGroup<BytesRef>> values) {
|
||||
FieldType fieldType = field.getType();
|
||||
List<SearchGroup<MutableValue>> result = new ArrayList<>(values.size());
|
||||
|
@ -132,17 +132,17 @@ class GroupConverter {
|
|||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
static TopGroups<BytesRef> fromMutable(SchemaField field, TopGroups<MutableValue> values) {
|
||||
if (values == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
FieldType fieldType = field.getType();
|
||||
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
GroupDocs<BytesRef> groupDocs[] = new GroupDocs[values.groups.length];
|
||||
|
||||
|
||||
for (int i = 0; i < values.groups.length; i++) {
|
||||
GroupDocs<MutableValue> original = values.groups[i];
|
||||
final BytesRef groupValue;
|
||||
|
@ -155,7 +155,7 @@ class GroupConverter {
|
|||
}
|
||||
groupDocs[i] = new GroupDocs<BytesRef>(original.score, original.maxScore, original.totalHits, original.scoreDocs, groupValue, original.groupSortValues);
|
||||
}
|
||||
|
||||
|
||||
return new TopGroups<BytesRef>(values.groupSort, values.withinGroupSort, values.totalHitCount, values.totalGroupedHitCount, groupDocs, values.maxScore);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -577,8 +577,6 @@
|
|||
-->
|
||||
<dynamicField name="*_i" type="int" indexed="true" stored="true"/>
|
||||
<dynamicField name="*_i1" type="int" indexed="true" stored="true" multiValued="false" sortMissingLast="true"/>
|
||||
<dynamicField name="*_idv" type="int" indexed="true" stored="true" docValues="true" multiValued="false" />
|
||||
|
||||
|
||||
<dynamicField name="*_s" type="string" indexed="true" stored="true"/>
|
||||
<dynamicField name="*_s1" type="string" indexed="true" stored="true" multiValued="false"/>
|
||||
|
|
|
@ -524,7 +524,6 @@
|
|||
|
||||
<dynamicField name="*_i" type="int" indexed="true" stored="true"/>
|
||||
<dynamicField name="*_is" type="int" indexed="true" stored="true" multiValued="true"/>
|
||||
<dynamicField name="*_idv" type="int" indexed="true" stored="true" docValues="true" multiValued="false" />
|
||||
<dynamicField name="*_s1" type="string" indexed="true" stored="true" multiValued="false"/>
|
||||
<!-- :TODO: why are these identical?!?!?! -->
|
||||
<dynamicField name="*_s" type="string" indexed="true" stored="true" multiValued="true"/>
|
||||
|
|
Loading…
Reference in New Issue