Issue rendering results from Solr #2365
Replies: 2 comments 2 replies
-
Not sure what you expect / I don't have a Solr instance at hand to test .. for the discussion; could you post screenshots of what you got from SearXNG (and what you expected). |
Beta Was this translation helpful? Give feedback.
-
|
While I am certainly no expert, I am running Apache SOLR on my Centos 7 Linux server and quiring that data using SearXNG. In order to get the SOLR results to appear properly in the SearXNG search results I needed o add code to the solr.py file. Essentially, you need to add URL, title and content (plus publishedDate). In addition, I specified the r['template'] = 'default.html' . I can help you with this if you need additional information. Temporarily, you can goto conservativesearch.info and the default query engine is my SOLR engine. Enter something like 'today' as the search and you will see my solr results. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a problem. When I search a solr store using searxng, everything works really well except the format of the results. I know I must be missing something fundemental here but I am struggling with this. I have removed some of the info below with asterix's
TITLE: Testing fax functionality
URL: http://knowledgebase-healthcare-in.*****
CONTENT: Testing fax functionality A test script is available for verifying that ******
OPEN_GROUP: True
As you can see it would be great if I was able to have the URL as a link instead of plain text. However the bigger problem here is that the results in the content key value pair have hightlighted the matching keywords. However the web page has not rendered these tags and just displays them as plain text. When I look into the source I can see it has escaped the <> characters in the tag so the source html in the searxng web browser is actually this.
<span class="highlight">test</span>
Checking solr itself I can see that the content field does not have this hightlighting it is plain text with only \n format characters. So I guess this is being added by Searxng.
Could you give me some advice/point me in the right direction?
Beta Was this translation helpful? Give feedback.
All reactions