Foros de discusión

Custom Attributes for User

venka reddy, modificado hace 10 años.

Custom Attributes for User

Regular Member Mensajes: 231 Fecha de incorporación: 23/03/11 Mensajes recientes
Hi,

I have added custom attribute for the userEntity as string .

I need to make that string as searchable, so there is an option to make searchable as "As aText" "As a keyword".

So what is the difference between these 2 options? Which one will be more suitable?
thumbnail
Harish Kumar, modificado hace 10 años.

RE: Custom Attributes for User

Expert Mensajes: 483 Fecha de incorporación: 31/07/10 Mensajes recientes
AFAIK In case of As a Text input string will be subject to tokenization while parsed by lucene or solr. on the other hand in case of As a Keyword, Tokenizer does not split the input at all. No processing in performed on the string, and the whole string is treated as a single entity.
thumbnail
Vilmos Papp, modificado hace 10 años.

RE: Custom Attributes for User

Liferay Master Mensajes: 529 Fecha de incorporación: 21/10/10 Mensajes recientes
Hi,

Do you mean a custom field, or you created an EXT plugin? If the first one, you can select the "Indexed" version of the field. If you are going to modify indexing, you should decide which search method to find the new field. If you use keyword then the simple search is fine for you. If you want the other way, then you have to modify the advanced search UI to meet your requirements.