Skip to content
Snippets Groups Projects
Commit 30b8ef6f authored by felmer's avatar felmer
Browse files

SSDM-4925: Changing lucene name of 'space id' to 'sample space id'

SVN: 38081
parent fae5031a
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.hibernate.SearchFieldConstant
public class SpaceSearchCriteriaTranslator extends AbstractFieldFromCompositeSearchCriteriaTranslator
{
private static final DetailedSearchField SPACE_ID_FIELD = DetailedSearchField.createAttributeField(
new SimpleAttributeSearchFieldKind(SearchFieldConstants.SPACE_ID, "Space ID"));
new SimpleAttributeSearchFieldKind(SearchFieldConstants.SAMPLE_SPACE_ID, "Space ID"));
private static final EnumSet<SearchObjectKind> ENTITY_KINDS_WITH_SPACE = EnumSet.of(SearchObjectKind.EXPERIMENT, SearchObjectKind.SAMPLE);
......
......@@ -563,7 +563,7 @@ public class SamplePE extends AttachmentHolderPE implements IIdAndCodeHolder, Co
// used only by Hibernate Search
@SuppressWarnings("unused")
@Transient
@Field(index = Index.YES, store = Store.YES, name = SearchFieldConstants.SPACE_ID)
@Field(index = Index.YES, store = Store.YES, name = SearchFieldConstants.SAMPLE_SPACE_ID)
@FieldBridge(impl = NullBridge.class)
private Long getSpaceId()
{
......
......@@ -80,6 +80,8 @@ public final class SearchFieldConstants
public static final String CONTAINER_ID = PREFIX_CONTAINER + ID;
public static final String SPACE_ID = PREFIX_SPACE + ID;
public static final String SAMPLE_SPACE_ID = PREFIX_SAMPLE + PREFIX_SPACE + ID;
public static final String DELETED = "deleted";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment