Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Hiral Ramavat
Should not search from private pages or private communities.
30 maggio 2012 9.07
Risposta

Hiral Ramavat

Punteggio: Junior Member

Messaggi: 98

Data di Iscrizione: 13 febbraio 2012

Messaggi recenti

Hi All,

I have integrated SOLR with Liferay 6.0 EE SP2.

Now when i am searching any content with specific word, it is also showing me the content which are on private pages or on the pages of the private site.

How can we exclude the content from the search result which are on private pages or on the private community/sites?

Thanks,
Hiral
Nagendra Kumar Busam
RE: Should not search from private pages or private communities.
30 maggio 2012 10.43
Risposta

Nagendra Kumar Busam

Punteggio: Liferay Master

Messaggi: 637

Data di Iscrizione: 7 luglio 2009

Messaggi recenti

there is no configuration kind of option for the functionality you are looking for. You need to customize code for this
Hitoshi Ozawa
RE: Should not search from private pages or private communities.
30 maggio 2012 16.05
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7954

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

I had a similar requirement.
You'll have to modify the search.jsp file in \tomcat-7.0.23\webapps\ROOT\html\portlet\search to skip search result from private pages.
Hitoshi Ozawa
RE: Should not search from private pages or private communities.
31 maggio 2012 2.02
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7954

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

Forgot to mention this, if you're not into programming, it's possible to not index a page by unchecking "Searchable" under Categorization.
Hiral Ramavat
RE: Should not search from private pages or private communities.
31 maggio 2012 6.09
Risposta

Hiral Ramavat

Punteggio: Junior Member

Messaggi: 98

Data di Iscrizione: 13 febbraio 2012

Messaggi recenti

Thanks Hitoshi.

Yes, By unchecking the searchable is the options for this, but it is only for the web content, and i have to uncheck it each and every web content.

And i have checked that, in liferay 6.0 EE, it will not search from the private pages for the regular users. for the admin users it will search all the contents from all the pages but for the regular users it will skip the private pages. So i think no need to change the code now.

Thanks,
Hiral
Hitoshi Ozawa
RE: Should not search from private pages or private communities.
31 maggio 2012 14.11
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7954

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

Thank you for the information. I'll if it works on the next CE release. :-)