[opencms-dev] solr

Диканский Андрей Юрьевич adikanskii at ncfu.ru
Thu Jan 24 13:06:02 CET 2019


Hello.

Thank you. It works!
Can you help me with other problem? 
When using Solr it provides "strange" url for found pages. Url works, but folder structure of the url is a bit strange.
For example, I have news-item (detailed page) with url "/science/nauka/informaciya/Konferenciya-Model_-OON-pristupila-k-svoei-rabote/".
In search results url to this page transforms to "/home/news/Konferenciya-Model_-OON-pristupila-k-svoei-rabote/". It works when I click on it, but I'd like to get original url ("/science/nauka/informaciya/Konferenciya-Model_-OON-pristupila-k-svoei-rabote/") instead of it  in search results.

How can I adjust solr to provide "original" url of the detailed page?



------------------------------

Message: 2
Date: Thu, 24 Jan 2019 10:25:29 +0100
From: Daniel Seidel <d.seidel at alkacon.com>
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] Solr
Message-ID: <be0a4606-c987-ba4a-9d25-8cdb1beeac17 at alkacon.com>
Content-Type: text/plain; charset="koi8-r"; Format="flowed"

Hi,


you could restrict the types of content you find, e.g. you could exclude
images by adding "fq=-type:image" to your query (if using the XML
content for search, add it to the extra solr parameters). The other way
round you could simply list all types you really want to find, e.g.,
"fq=type:(containerpage OR binary OR ....)"


Best, Daniel.


Am 22.01.19 um 09:07 schrieb ????????? ?????? ???????:
>
> Hello.
>
>
> We are using solr for search. There are links to images in search
> results. How to avoid this??What should we configure to force solr do
> not index images or may be hide image-files in search results?
>
>
> OpenCMS 10.5.4.
>
>
>
>
> Andrew Dikansky
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
--
Kind Regards,
Daniel.

-------------------

Daniel Seidel

Alkacon Software GmbH & Co. KG - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20190124/30c44b22/attachment-0001.html>

------------------------------

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev

End of opencms-dev Digest, Vol 366, Issue 2
*******************************************



More information about the opencms-dev mailing list