From c5246a723ffab9daf03798670a9fdb58d044db62 Mon Sep 17 00:00:00 2001
From: felmer <felmer>
Date: Wed, 9 Mar 2011 09:39:21 +0000
Subject: [PATCH] LMS-2103 allow to search for user id

SVN: 20262
---
 .../ch/systemsx/cisd/openbis/generic/shared/dto/PersonPE.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/PersonPE.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/PersonPE.java
index e0c75b273f8..2c01da2b6b0 100644
--- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/PersonPE.java
+++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/PersonPE.java
@@ -152,7 +152,7 @@ public final class PersonPE extends HibernateAbstractRegistrationHolder implemen
     @Length(max = 50, message = ValidationMessages.USER_ID_LENGTH_MESSAGE)
     @NotNull(message = ValidationMessages.USER_ID_NOT_NULL_MESSAGE)
     @Pattern(regex = USER_CODE_REGEX, flags = java.util.regex.Pattern.CASE_INSENSITIVE, message = ValidationMessages.VALID_USER_CODE_DESCRIPTION)
-    @Field(index = Index.NO, name = SearchFieldConstants.PERSON_USER_ID, store = Store.YES)
+    @Field(index = Index.TOKENIZED, name = SearchFieldConstants.PERSON_USER_ID, store = Store.YES)
     public final String getUserId()
     {
         return userId;
-- 
GitLab