private Set<Field> buildDefaultField(KProperty<?> prop, ProtobufType int32) { return Collections.singleton(this.createField(ProtobufScope.OPTIONAL, int32, this.sanitize(prop.getName()), prop.isSortable(), prop.isSearchable())); }
private Set<Field> buildDefaultField(KProperty<?> prop, ProtobufType int32) { return Collections.singleton(this.createField(ProtobufScope.OPTIONAL, int32, this.sanitize(prop.getName()), prop.isSortable(), prop.isSearchable())); }
property.getValue().toString().toLowerCase(), new HashSet<>(Arrays.asList(String.class)), property.isSortable(), property.isSearchable())); String.valueOf(((FileTime) property.getValue()).toMillis()), new HashSet<>(Arrays.asList(Long.class)), property.isSortable(), property.isSearchable())); String.valueOf(((Date) property.getValue()).getTime()), new HashSet<>(Arrays.asList(Long.class)), property.isSortable(), property.isSearchable())); content, new HashSet<>(Arrays.asList(String.class)), property.isSortable(), property.isSearchable())); property.getValue().toString(), new HashSet<>(Arrays.asList(property.getValue().getClass())), property.isSortable(), property.isSearchable()));
private MetaProperty newMetaProperty(final KProperty<?> property) { Set<Class<?>> types = new CopyOnWriteArraySet<Class<?>>() {{ add(property.getValue().getClass()); }}; return new MetaPropertyImpl(property.getName(), property.isSearchable(), property.isSortable(), types); } }
property.getValue().toString().toLowerCase(), new HashSet<>(Arrays.asList(String.class)), property.isSortable(), property.isSearchable())); String.valueOf(((FileTime) property.getValue()).toMillis()), new HashSet<>(Arrays.asList(Long.class)), property.isSortable(), property.isSearchable())); String.valueOf(((Date) property.getValue()).getTime()), new HashSet<>(Arrays.asList(Long.class)), property.isSortable(), property.isSearchable())); content, new HashSet<>(Arrays.asList(String.class)), property.isSortable(), property.isSearchable())); property.getValue().toString(), new HashSet<>(Arrays.asList(property.getValue().getClass())), property.isSortable(), property.isSearchable()));
if (property.isSortable()) { return new IndexableField[]{new SortedDocValuesField(property.getName(), new BytesRef(property.getValue().toString()))};