• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5657: Query Search broken when using text ~ 'something'

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Urgent Closed   patch 4.2.1, 5.0.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

SEARCHes of type query using text ~ has been broken since the released version of 4.2.0

First I thought it was a UTF-8 issue but I have confirmed that this issue is present also with standard iso charset and the issue has been introduced AFTER the release of 4.2.0 because in our 4.2.0 here atr Motorola the same search works.

This Danish text: Danmarks måske kommende statsminister Lars Løkke Rasmussen er ikke så indlysende en kandidat til posten som for blot et par uger siden, skriver Morgenavisen Jyllands-Posten.

Let us try two queries. One with a Danish word and one with a word containing only A-Z


  • SEARCH{"text ~ '*Løkke*'" type="query"}
Searched: text ~ '*Løkke*'

Results from Bugs web retrieved at 07:17 (GMT)

SEARCHes of type word do not work if word is non English and the TWIki is setup for UTF8 This Danish text: Danmarks m...
SEARCHes of type query using text ~ has been broken since the released version of 4.2.0 First I thought it was a UTF 8 issue but I have confirmed that this issue is...
Number of topics: 2


  • SEARCH{"text ~ '*statsminister*'" type="query"}
Searched: text ~ '*statsminister*'

Results from Bugs web retrieved at 07:17 (GMT)

SEARCHes of type word do not work if word is non English and the TWIki is setup for UTF8 This Danish text: Danmarks m...
After the fix for Item4946 writing non English in iso 8859 1 is totally broken. All you have to do is create a topic. Save it. Open it in the raw editor. Write...
SEARCHes of type query using text ~ has been broken since the released version of 4.2.0 First I thought it was a UTF 8 issue but I have confirmed that this issue is...
Number of topics: 3


In both searches we expect at least this topic to be found and there is a utf-8 bug that contains same text so two hits should be found.

This is a serious 4.2.1 release blocker because nearly all query searches I have made that searches inside topic text are broken.

-- TWiki:Main/KennethLavrsen - 13 Apr 2008

The match for text was modified to make it non-greedy in response to Item5509. Sven, can you comment? it looks to me like there should be a /s at the end of that RE.

-- CrawfordCurrie - 27 May 2008

pooper skooper - not enough unit tests - I'll poke this along with the other query oddities i'm looking into atm

-- TWiki:Main.SvenDowideit - 27 May 2008

I have confirmed that the /s works.

Are you checking it in a near future? I have had to run with the fixed code to be able to fix another search related bug.

I can check in this single character fix if you do not have time.

-- TWiki:Main.KennethLavrsen - 30 May 2008

for me its pretty much one of the most urgent issues. This and the related IF & query bug.

I'm expecting this w/e. Good news that we have a fix though - means I can focus on finding a few unit tests that reveal the problem smile

-- TWiki:Main.SvenDowideit - 30 May 2008

Somethigsasunique andsomethings are not


  • SEARCH{"text ~ '*Somethigsasunique*'" type="query"}
Searched: text ~ '*Somethigsasunique*'

Results from Bugs web retrieved at 07:17 (GMT)

SEARCHes of type query using text ~ has been broken since the released version of 4.2.0 First I thought it was a UTF 8 issue but I have confirmed that this issue is...
Number of topics: 1

  • SEARCH{"text ~ '*andsomethings*'" type="query"}
Searched: text ~ '*andsomethings*'

Results from Bugs web retrieved at 07:17 (GMT)

SEARCHes of type query using text ~ has been broken since the released version of 4.2.0 First I thought it was a UTF 8 issue but I have confirmed that this issue is...
Number of topics: 1

this bug shows that there is something massivly wrong with the existing IF &SEARCh unit tests.

the above queries all succeed in the Fn_SEARCH tests, but not in topics - either trunk / 4.2 :/

-- TWiki:Main.SvenDowideit - 01 Jun 2008

k, some progress. The unit tests were testing a topic containing only one line of text frown

fixored

-- TWiki:Main.SvenDowideit - 01 Jun 2008

Cleaned "WaitingFor" field.

-- TWiki:Main.GilmarSantosJr - 10 Aug 2008

ItemTemplate
Summary Query Search broken when using text ~ 'something'
ReportedBy TWiki:Main.KennethLavrsen
Codebase 4.2.1, ~twiki4
SVN Range TWiki-5.0.0, Tue, 27 May 2008, build 16846
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Checkins TWikirev:16858 TWikirev:16859 TWikirev:16860 TWikirev:16861
TargetRelease patch
ReleasedIn 4.2.1, 5.0.0
Edit | Attach | Watch | Print version | History: r15 < r14 < r13 < r12 < r11 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r15 - 2008-08-10 - GilmarSantosJr
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback