Built in RWiki search not working when search tool enabled

Description

In trunk(http://nightly2.sakaiproject.org:8082/portal), Search functionality is not giving results even though it has matches.
But It's working fine in 10.x(http://nightly2.sakaiproject.org:8081/portal), 2.9.3(local environment)

Attached videos can be opened in VLC player.

This is specific to the box in rwiki. If search.enable=false, then it works, but if search.enable=true then it won't work unless you also set wiki.fullsearch=false. However setting that means that results won't appear in the search tool. See the comments for the reason why.

So short answer
Default. search.enable=false, wiki.fullsearch=true = Built in wiki search works, regular search doesn't work
Setting search.enable=true, wiki.fullsearch=true = Context search in wiki doesn't work, regular search works for wiki and other tools
Setting search.enable=true, wiki.fullsearch=false = Context search in wiki works, regular search doesn't search wiki but works for other tools

Attachments

2
  • 25 Jun 2014, 05:10 AM
  • 25 Jun 2014, 05:10 AM

Activity

Show:

Matthew Jones April 28, 2016 at 9:42 AM

Right, so there were a lot of permutations here, back when I tested this back in 2014. I just don't know what's the best. The 'built-in' wiki search was really simple and just ran SQL on the database table for whatever term you put in. This could have a performance impact depending on how much wiki was used at your institution, and it wouldn't allow for more complex queries.

The problem with search not working in ES (and possibly working in SOLR) is filed as https://sakaiproject.atlassian.net/browse/SAK-28103#icft=SAK-28103 and in ElasticSearchService. This seemed like a more complex problem to fix the last time I talked to Earle about it. So I think what you're saying is there are two options.
Either
1) Remove the search box in wiki completely (or maybe put a message there) when (search.enable=true and wiki.fullsearch=true) because it isn't working right now. (It calls this searchExperimental in rwiki)

  • Ideally a future fix would put it back in, maybe in more tools than wiki
    2) Always use the wiki database search for the search box rather than the SearchService

Either of these would take a little work, seems like #1 would be less though.

Adam Marshall April 28, 2016 at 4:50 AM

One option is disabling search, after all regular site search will work. (I've tried it, it works just fine,) however, this should only be done if search.enable = true. If search.enable=false then (we think) the Wiki search will work perfectly.

Trisha Gordon April 18, 2016 at 3:05 PM

This issue was fixed in 2.7.1 - I've linked to that Jira (https://sakaiproject.atlassian.net/browse/SAK-16421#icft=SAK-16421) in case anyone wants to try patching Sakai 11

Matthew Jones November 20, 2014 at 3:54 PM

I have a fix on https://sakaiproject.atlassian.net/browse/SAK-28103#icft=SAK-28103 to allow for better searching while is needed to fix this, but I also think we should fix what getType is returning as well here. It should be returning sakai:wiki instead of the class name. But I think this would be dependent on that other issue.

Matthew Jones November 19, 2014 at 10:25 AM

Yeah, while I believe the type is wrong, there is currently no way to fix this to search it without either changing the type and reindexing, or fixing rwiki to allow for searching the tool name. . . Created https://sakaiproject.atlassian.net/browse/SAK-28103#icft=SAK-28103 as there are some limitations (and errors) to how the elasticsearch is allowing for searching and I feel like there is possibly two problems here . . .

Won't Fix

Details

Priority

Affects versions

Components

Assignee

Reporter

Created June 25, 2014 at 5:10 AM
Updated March 18, 2021 at 8:36 AM
Resolved March 18, 2020 at 3:39 AM

Flag notifications