Fullscreen
Loading...
 
Skip to main content

Advanced search (uni-search) fails while Basic search founds the search string

Status
Closed
Subject
Advanced search (uni-search) fails while Basic search founds the search string
Version
12.x
Category
  • Error
  • Indexing
Feature
Search
Resolution status
Fixed or Solved
Submitted by
Xavier de Pedro
Volunteered to solve
Nelson Ko
Lastmod by
Xavier de Pedro
Rating
(0)
Description

In a simple test site with a few pages (the ones created with profile r_test). I search for "wordcloud", which is found in only one wiki page:

  • with Basic Search, I found it, in the wiki page r_test5;
  • with Advanced search (and default settings; index rebuilt), no match found.


To reproduce,

  • install a new tiki 12.x site,
  • apply profile r_test.
  • Add search module on a side column, with default settings.
  • Enable Basic Search and Advanced search with default settings (Lucene).
  • Search the string "wordcloud" at the search module (with no quotation marks).
    • 1 match found in one wiki page (r_test5).
  • Disable Basic Search
  • Clear Tiki caches
  • Rebuild search index.
  • Search for "wordcloud" again at the search box.
    • 0 matches.


Same results with Lucene or with MYSQL FTS as unified index engine.

This issue has been reproduced in similar ways in other tiki sites.

Reproduced also on http://demo.tiki.org/trunk/Question
u: admin
p: 12345

Solution

UPDATE: Xavi, I have fixed by r48100 some problems. The problem is that your text is inside a plugin and you need your setting like this (should work after r48100). You need to allow content within some plugins to be searched. I would recommend not allowing all plugins to be searched (even though this is a pref option) within as there are some plugins that might not want to/ or could break.

https://www.evernote.com/shard/s37/sh/b5aebeaa-dd8e-4b54-86ba-34b822c18481/0cc7ff07755ba3902cdae775037b6bd9Question

I tried to reproduce the problem you indicated, using demo.t.o but the problem doesn't exist, in seems:
- with MySQL Full-Text Search OFF (not checked) and Unified Search ON (checked)
- I did a search on "wordcloud" and got 1 hit.
- I rebuilt the index
- I did the search on "wordcloud" again, and also got 1 hit.
I can't seem to reproduce the situation where you get 0 hits with Unified Search.
-olaf-michael (omstefanov)


Hi Olaf

You found matches because someone added that word in the homepage, but were not finding it in the wiki page "r_test5" (where the word is found many times, inside the code of that page.
I removed the occurrences of wordcloud of the homepage, and I could reproduce again the issue.


UPDATE: Thanks, Nelson, I upgraded the show instance (r48300+), and I couldn't reproduce the issue any more when I indicated, as you suggested, to exclude all plugins except "R,RR,etc" from the unified index.

Importance
8
Easy to solve?
5
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4797
Created
Friday 11 October, 2013 16:04:43 UTC
by Xavier de Pedro
LastModif
Monday 04 November, 2013 13:56:06 UTC


Show PHP error messages