Foren

URL in Search Portlet with solr

Tobias Rübner, geändert vor 14 Jahren.

URL in Search Portlet with solr

New Member Beiträge: 10 Beitrittsdatum: 20.01.09 Neueste Beiträge
Hi,

I'm implementing a search portlet using the liferay solr plugin. For indexing portlets we use liferays open-search way.
But for showing the results, we don't want to use the liferay search portlet. So we are developing a portlet that should use solr.
Querying the solr-index (http://localhost:8080/solr/select/?=query) works fine and shows results like this:


<response>
...
  <result name="response" numfound="5" start="0">
    <doc>
			<str name="companyId">10112</str>
			<str name="content">query content</str>
			<str name="entryClassName">com.liferay.portlet.wiki.model.WikiPage</str>
			<str name="entryClassPK">10195</str>
			<str name="groupId">10136</str>
			<str name="modified">20090820143701</str>
			<str name="nodeId">10193</str>
			<str name="portletId">36</str>
			<str name="roleId">10120</str>
			<str name="title">Start</str>
			<str name="uid">36_PORTLET_10193_FIELD_Start</str>
		</doc>
...

</result></response>


My Question is: How can I get the URL to the portlet containing this content?
Are there any liferay utils?

Thanks for your help.

br,
Tobias
Carl Grimm, geändert vor 13 Jahren.

RE: URL in Search Portlet with solr

New Member Beitrag: 1 Beitrittsdatum: 08.06.10 Neueste Beiträge
Tobias, did you figure out how to do this? I am running into the same issue with another engine and Liferay does not seem to export any URL information when sending content out.
Fabien Fabien, geändert vor 12 Jahren.

RE: URL in Search Portlet with solr

New Member Beiträge: 5 Beitrittsdatum: 17.05.11 Neueste Beiträge
Hi,

I am also running into the same issue with SolR and Liferay. Do you find any solution ?

Sincerely
Kris Sokolovski, geändert vor 12 Jahren.

RE: URL in Search Portlet with solr

New Member Beiträge: 8 Beitrittsdatum: 14.11.11 Neueste Beiträge
Hey there,

Anyone have solved this? Or some good thoughts?

I also wonder why there is problem with "URL", as they are not indexed and we can't get them from solr. This is default Liferay solr-web plugin's schema.xml, and I think this URL should be also gathered correctly. Or should it be modified somehow?

Any ideas on this topic would be welcome.

Regards,
Kris

-----------
Liferay 6.0, EE SP2, on Tomcat