留言板

Liferay does not communicate with solr

Nikos Samaras,修改在8 年前。

Liferay does not communicate with solr

Junior Member 帖子: 29 加入日期: 16-1-14 最近的帖子
Hello,

I am using liferay-portal-6.2-EE and solr-4.10.4. When new document is imported in Documents and Media, the solr is updated automatically.

When I search the context of the new document I get nothing.

The system works perfect only when I restart the solr server.

Do you have any idea why does this happen?

here is the source code that I am using in order to get the documents

Hits hits = SearchEngineUtil.search(searchContext, query);

Thank you
Nikos
thumbnail
Olaf Kock,修改在8 年前。

RE: Liferay does not communicate with solr

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
Nikos Samaras:
I am using liferay-portal-6.2-EE and solr-4.10.4.


As you're on EE you might want to open a support ticket.

Maybe some quick test upfront: Is there any cluster involved - either on Liferay's or on SOLR's side? Are you using this app for interfacing with SOLR?
Nikos Samaras,修改在8 年前。

RE: Liferay does not communicate with solr

Junior Member 帖子: 29 加入日期: 16-1-14 最近的帖子
Thank you for your answer Kock.

These are the solr wars that I am using:
1. Extract from “Solr 4 Search Engine EE.lpkg” the file solr4-web-6.2.10.6.war
2. solr-4.10.4

How can I open a support ticket?

Thank you
Nikos
thumbnail
Olaf Kock,修改在8 年前。

RE: Liferay does not communicate with solr

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
Nikos Samaras:
How can I open a support ticket?


Somebody in your organization has access to Liferay's support system - this comes with EE. Find that person (or those people, could be multiples) and ask them to do it for you: There's a customer portal which prominently links to the ticket system.
Nikos Samaras,修改在8 年前。

RE: Liferay does not communicate with solr

Junior Member 帖子: 29 加入日期: 16-1-14 最近的帖子
Thank you very much Kock
thumbnail
Spyridon Doulgeridis,修改在8 年前。

RE: Liferay does not communicate with solr

New Member 帖子: 8 加入日期: 16-1-7 最近的帖子
Hi Olaf,

First of all thank you for your help! NIck is my collegue and we are working in the same project.

I am having a partners account. I 've navigated to Custromer Portal --> Create Ticket. The URL is https://www.liferay.com/group/customer/support/-/support/ticket
But when page opens it has no content.

We are developing a project for a client and we have developer licenses for EE. I do not know if there is an issue with that.

Could you please help emoticon

Spyros
Nikos Samaras,修改在8 年前。

RE: Liferay does not communicate with solr

Junior Member 帖子: 29 加入日期: 16-1-14 最近的帖子
Hello,

I think that I found the reason of that. In solrconfig.xml (solr4-web-6.2.10.6.war) the <openSearcher> should be true.

<openSearcher>true</openSearcher>

After that the results are coming correct when I upload a document on Liferay Documents and Media

Thank you
Nikos
thumbnail
Olaf Kock,修改在8 年前。

RE: Liferay does not communicate with solr

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
Sorry, I missed this earlier. If you are having problems submitting support tickets, please contact your sales rep - they'll be able to help setting you up with this)