Foros de discusión
Search portlet : Searching custom fields
McDonnell Gomez, modificado hace 11 años.
Search portlet : Searching custom fields
New Member Mensajes: 9 Fecha de incorporación: 25/02/12 Mensajes recientes
Currently I have defined custom fields for pages to store the metadata. Could anyone tell me how would I be able to search the data in these fields using the search portlet.
for example, I have defined a custom field author for every page that is created. Would I be able to do a search like "author : <name of author> " from the search portlet.
Requesting your help on how to configure this if its possible.
for example, I have defined a custom field author for every page that is created. Would I be able to do a search like "author : <name of author> " from the search portlet.
Requesting your help on how to configure this if its possible.
Amit Doshi, modificado hace 11 años.
RE: Search portlet : Searching custom fields
Liferay Master Mensajes: 550 Fecha de incorporación: 29/12/10 Mensajes recientes
Hi McDonnell,
As per my knowledge liferay page attribute is not being indexed. So first you need to index it somehow to be able to search for it.
May be you need to create indexer for page attribute.
Thanks & Regards,
Amit Doshi
As per my knowledge liferay page attribute is not being indexed. So first you need to index it somehow to be able to search for it.
May be you need to create indexer for page attribute.
Thanks & Regards,
Amit Doshi
Aneesha Rao, modificado hace 11 años.
RE: Search portlet : Searching custom fields
New Member Mensajes: 14 Fecha de incorporación: 24/02/12 Mensajes recientes
Hi Amit,
I have an issue regarding indexing of searchable custom fields. There are two cases.
1)
I created a Searchable custom field. I made Users add their entries in that custom field.
I added this custom field in Advanced Search in Directory portlet. I got the correct result.
Now,
I created a new User and made him add his entry in the custom field provided to him.
I tried for a search on his entry and it stated "No users found"
2)
I created a Searchable custom field and re-indexed all search indices.
I made Users add their entries in that custom field.
I added a this field in directory portlet.
I tried for a search on users' entry and it stated "No users found"
Do you know where I am going wrong?
--Thanks and Regards,
Aneesha
I have an issue regarding indexing of searchable custom fields. There are two cases.
1)
I created a Searchable custom field. I made Users add their entries in that custom field.
I added this custom field in Advanced Search in Directory portlet. I got the correct result.
Now,
I created a new User and made him add his entry in the custom field provided to him.
I tried for a search on his entry and it stated "No users found"
2)
I created a Searchable custom field and re-indexed all search indices.
I made Users add their entries in that custom field.
I added a this field in directory portlet.
I tried for a search on users' entry and it stated "No users found"
Do you know where I am going wrong?
--Thanks and Regards,
Aneesha
Parth N Vachhani, modificado hace 11 años.
RE: Search portlet : Searching custom fields
New Member Mensajes: 12 Fecha de incorporación: 14/05/10 Mensajes recientes
Hi Aneesha ,
I am having the same requirement as yours.
Were you able to solve the issue ?
You mentioned that "I added this custom field in Advanced Search in Directory portlet." . By this do you mean that you add it programatically ?
If yes would you please share the code ?
Thanks in advance.
Parth
I am having the same requirement as yours.
Were you able to solve the issue ?
You mentioned that "I added this custom field in Advanced Search in Directory portlet." . By this do you mean that you add it programatically ?
If yes would you please share the code ?
Thanks in advance.
Parth