Tags:
create new tag
view all tags

SID-02155: Search query of raw text (not rendered text)

Status: Answered Answered TWiki version: 4.2.0 Perl version:
Category: CategorySearch Server OS: Last update: 10 years ago

I would like to query my web for text in a hyperlink using the [[   ]] notation or < > notation, but I have not found a way to tell the search to look at the 'raw' source not the rendered version.

For example if I search for 'gohere' on [[gohere.html][this one]] I get no results but if I search for 'this one' I get a hit on the link. likewise if I had used <img src="gohere.png" />

-- TWiki Guest - 2016-02-16

Discussion and Answer

Actually, TWiki's search does look at the raw source, and only at the raw source: TWiki's search feature is based on a simple call grep, without rendering the topics. Could you please provide an example in the Sandbox where a search does not work as you want?

-- Harald Jörg - 2016-02-17

  • Sure, let's try it here
    • missing
  • Search for keyword from picture filename
SID-02155 * missing
SID-02155 SEARCH{...}
Number of topics: 1

  • Search for keyword in alt text
SID-02155 * missing
SID-02155 SEARCH{...}
Number of topics: 1

  • Now lets try a hyperlink
  • Search for keyword from link
SID-02155 * web search
SID-02155 SEARCH{...}
Number of topics: 1

  • Search for keyword from text
SID-02155 * web search
SID-02155 SEARCH{...}
Number of topics: 1

  • Works perfectly on your web (of course).
  • Seems to work on mine now too. I must have made some mistake on my earlier attempts. Sorry for the trouble.

-- TWiki Guest - 2016-02-26

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Search query of raw text (not rendered text)
SupportCategory CategorySearch
TWiki version 4.2.0
Server OS

Web server

Perl version

Browser & version

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2016-02-26 - TWikiGuest
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.