This question about Topic Markup Language and applications: Answered
querysearch not working
Hi
I am running
Foswiki-1.1.2, Wed, 10 Nov 2010, build 9940, Plugin API version
2.1, Strawberry Perl, installed on my windows XP PC.
I am trying to run querysearch but searches return no results. I believe that the syntax I am using:
attachments[name='purdey.gif']
should be correct as I took one of the examples from the documentation.
I am guessing it could be a grep related problem, could you indicate how I should go about in debugging it?
Thanks
Could you please paste the full SEARCH expression here?
%SEARCH{
"attachments[name='sh.png']"
type="query"
web="%SYSTEMWEB%"
}%
Result:
DocumentGraphics
Documentation Graphics and Filetype icons This is a Foswiki icon library. The graphics can be used in topics and by web applications. Usage Default notation: %I...
FamFamFamFlagIcons
FamFamFamFlagIcons 'Flags' are 247 icons in GIF and PNG formats representing most countries in the world as small pixel icons. These flag icons are available ...
Number of topics: 2
--
PaulHarvey - 03 Feb 2011
This is the actual search I ran:
attachments[name='sledge.gif']
and the this is the SEARCH that gets produced:
%SEARCH{
"attachments[name='sledge.gif']"
type="word"
scope="all"
web="Main"
nosearch=""
casesensitive=""
limit=""
zeroresults="on"
}%
If I create a topic and paste the SEARCH in I still get no results.
I also attached a screenshot that shows the topic (
ProductForm) with the attachment.
Thanks
Daniele
--
DanielePizzocchero - 07 Feb 2011
Question786
Hi I am running Foswiki 1.1.2, Wed, 10 Nov 2010, build 9940, Plugin API version 2.1, Strawberry Perl, installed on my windows XP PC. I am trying to run querysearc...
Number of topics: 1
--
FranzJosefGigler - 07 Feb 2011
Number of topics: 0
--
FranzJosefGigler - 07 Feb 2011
You need to specify
type="query"
if you want to use Query-Search-Features.
--
FranzJosefGigler - 07 Feb 2011
Yes, forgetting to set
type="query"
is a common mistake.
DanielePizzocchero, please let us know if this fixed the problem for you
--
PaulHarvey - 07 Feb 2011