SID-02155: Search query of raw text (not rendered text)
| Status: |
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
- Search for keyword from picture filename
| SID-02155 |
* |
| SID-02155 |
SEARCH{...} |
Number of topics: 1
- Search for keyword in alt text
| SID-02155 |
* |
| SID-02155 |
SEARCH{...} |
Number of topics: 1
- Now lets try a hyperlink
- Search for keyword from link
Number of topics: 1
- Search for keyword from text
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
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.