Solr search only listing in auto suggestion the search result

Hi,
I have a strange behavior with the default search.

When I start entering the search word in the search field the auto suggestion pops up with the pages having that content, but as soon as I hit enter I receive an empty list. This happens even if I copy paste a word from an existing page.

Maybe I have some wrong settings, but I was not able to find and solve it.

XWiki is running on Apache Tomcat/8.5.15
XWiki version : XWiki Enterprise 8.4.5

These are the settings in the “Administration: Search”

DEFAULT SEARCH ENGINE: Solr
Action: Add to Index
Wiki: Entire farm
Custom Query: XWiki Query Language (XWQL)

On the attached screen I first hit enter after search and you see the empty result. Then entered the searched word again and let the auto suggestion pop up.

Thanks,
Viktor

Could you make sure you clear your browser cache? Also could you show us the URL you got?

Sure.

Checked with 2 browsers (Chromium Version 58.0.3029.110 and Firefox 53.0.3 (64-bit), but result is the same)

This is a Firefox screen, total browsing history removed and cache cleared.

As far as I see it adds in the URL the right search word.
Search?text=Information

For the main space we added a prefix “x_” , but I don’t think that would trigger the issue because the search suggestion works perfectly.

Unfortunately its on our internal server, so no access from outside.

Maybe some pages require Programming Rights and the user who created/saved them didn’t have that permission.

Or maybe you’re hitting Loading... (fixed in 9.0+).

I’m seeing this behavior on XWiki 9.11.2 and cannot work out why the search page is empty. Search suggestions are working.

Any ideas where to look for what might be causing the issue?

Edit: Server version: Apache Tomcat/7.0.76
I too renamed the Main wiki, perhaps something went awry with the page recreations?

Usually this means that some default pages have been saved by a user not having Programming Rights. See http://markmail.org/message/aebim2dp4wv5cvgn

I don’t know how to give the user any more programming rights than I have. The user is a member of a group who has all rights, additionally just to test, I exclusively gave the user programming rights. No change in the issue.
I ran the search with the &debug=true in the URL, which didn’t give me any greater insights.

Any ideas where I could look to further debug the issue?

Thanks,
Lachlan.

Edit:
The search pages got recreated when renaming the wiki, could that have broken something?
image

Ah-ha! Success!

I wanted to uninstall Search Application and and Solr Search Application and reinstall them but there were too many dependencies. I then found the “compute changes” button for both applications -
image

There were a number of changes, so I reset them all and my search started working.

Edit: After some more digging, I’m not proud to say I created the database with latin encoding - might have something to do with why everything got a little screwed up… Converted the DB, all good now.

1 Like