Question
Dear Sir,
We have chosen TWiki to build and manage our knowledge base. Because of the great number of topics we have defined this TWiki form to add some metadata to every single topic:
Topic classification form
| Name |
Type |
Size |
Values |
| TopicType |
select |
1 |
Term, Report, Paper, Template |
| License |
checkbox |
1 |
License |
| Protocol |
checkbox |
1 |
Network, Management |
| Language |
checkbox |
1 |
Markup, Programming, Modelling |
| Product |
checkbox |
1 |
Parser, Database, OperatingSystem, FileSystem, Library, Server, Platform, Framework, HW |
| Person |
checkbox |
1 |
Person |
| GroupOfPeople |
checkbox |
1 |
Company, Community, Committee, Agency |
| Abbreviation |
checkbox |
1 |
Abbreviation |
I'd like to ask you, if it is possible to make sophisticated search using this metadata? To clarify the idea: e.g. We'd like to find all Reports on Product.Database or Protocol.Management (a search topic with
TopicType select (Term, Report, Paper, Template values), Protocol checkbox (Network, Management values) etc.).
Is it possible to find all the topics matching several search criterions in conjunction (
TypeTopic.*Report AND (Product.*Database | Protocol.*Management))?.
- TWiki version: 01 Dec 2001
- Web server: Apache
- Server OS: Linux
- Web browser: IE6
- Client OS: Windows XP
--
RomanMusil - 04 Nov 2002
Answer
Yes, that is possible with a query-by-example form, the URLPARAM variable and an AND search. For the AND search you need to upgrade to the latest Beta or use the andgrep utility,
CategorySearchForm.
See example in action at
Main.TWikiInstallation
--
PeterThoeny - 04 Nov 2002