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:
Searched: attachments[name='sh.png']

Results from System web retrieved at 05:31 (GMT)

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

Searched: attachments[name='scrn01.jpg']

Results from Support web retrieved at 05:31 (GMT)

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

Searched: attachments[name='scrn01.jpg']
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 smile

-- PaulHarvey - 07 Feb 2011
 

QuestionForm edit

Subject Topic Markup Language and applications
Extension
Version Foswiki 1.1.2
Status Answered
I Attachment Action Size Date Who Comment
scrn01.jpgjpg scrn01.jpg manage 335 K 07 Feb 2011 - 09:34 DanielePizzocchero screenshot shows topic with attachment
Topic revision: r5 - 07 Feb 2011, PaulHarvey
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy