Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Gwowen Fu
Faceted Search API returns articles with old articleID
October 5, 2012 2:49 PM
Answer

Gwowen Fu

Rank: Expert

Posts: 253

Join Date: December 27, 2010

Recent Posts

Hi,

I have a portlet to add articles with articleID set to article title, later I change the portlet to delete all articles and add articles with articleID generated by Liferay.

Problem happened, when I run another portlet to search articles using Faceted Search API, the data returned is the old data created before. The article is still using
title as articleID instead of system generated ID.

I tried to clear cache from Server Administration and tried to restart server several times and still the Faceted Search API returns old article. I checked the database and it is not there.

Where is the data cached?

Below is the part of the returned data from Faceted Search API.

[{uid=[15_PORTLET_10536_FIELD_INDUSTRY_RESOURCES], scopeGroupId=[10536], classNameId=[0], rootEntryClassPK=[137454], groupRoleId=[10536-10170], snippet=[ professional designations and training! Designations and Training 92900126 Industry...], type=, assetCategoryNames=, articleId=[INDUSTRY_RESOURCES], version=[1.0], title=[Industry Resources], userId=[12901], userName=, createDate=[20120926091612], portletId=[15], roleId=[10162, 10163], entryClassName=[com.liferay.portlet.journal.model.JournalArticle], title_en_US=[Industry Resources], displayDate=[20120731060000], status=[0], entryClassPK=[137454], modified=[20120926091612], templateId=[ARTICLE_TEMPLATE]


Thanks for any help!
Gwowen
Jan Tošovský
RE: Faceted Search API returns articles with old articleID
October 6, 2012 10:10 AM
Answer

Jan Tošovský

Rank: Expert

Posts: 299

Join Date: July 22, 2010

Recent Posts

Have you also reindexed all search indexes? It is also on the Server Administration page.
Gwowen Fu
RE: Faceted Search API returns articles with old articleID
October 8, 2012 9:00 AM
Answer

Gwowen Fu

Rank: Expert

Posts: 253

Join Date: December 27, 2010

Recent Posts

Jan Tošovský:
Have you also reindexed all search indexes? It is also on the Server Administration page.

Thanks a lot! Problem solved after reindexed all search indexes. I am not familiar with the index, when do we have to perform this to make sure the search won't break?
Gwowen