[ic] swish search inside a loop.

Stefan Hornburg (Racke) racke at linuxia.de
Mon Sep 28 09:30:16 UTC 2009


Rick Bragg wrote:
> On Sat, 2009-09-26 at 07:35 +0200, Stefan Hornburg (Racke) wrote:
>> Rick Bragg wrote:
>>> Hi,
>>>
>>> I can't seem to get a swish search to work inside a loop.  I have tested
>>> on 5.6.1 and 5.6.2. 
>>>
>>> This should be all I need, but it never returns any matches at all.  
>>>
>>>  [loop
>>>    label=swish-search-results
>>>    prefix=swish-search
>>>    list_prefix=swish-search_list
>>>    more=1
>>>    ml=25
>>>    search=|
>>>          mv_searchtype=swish
>>>          mv_search_file=products/index.swish
>>>          mv_substring_match=1
>>>          se='water'   
>>>          rf="code,score,url,title,filesize,mod_date"
>>>  |]
>>>
>> Did you see any error messages in your log file?
>>
>> Regards
>> 	Racke
>>
>>
>>
>> -- 
>> LinuXia Systems => http://www.linuxia.de/
>> Expert Interchange Consulting and System Administration
>> ICDEVGROUP => http://www.icdevgroup.org/
>> Interchange Development Team
>>
> 
> OK, I did fix it for now, the way I did it was to put the
> "products/index.swish in the new AllowRemoteSearch directive. AND go
> back to using the [search-region] instead of the loop.  This is pure
> public record data, so no worries there.  At some other point, I may
> need use it as a loop.  I am still facing a real show-stopper however
> with my other post about the more list.  Now that I went back to the
> [search-region] with this, things are OK, but I have other tables (not
> swish) that I am using the [loop] fed by CGI and I can't get [more] to
> work. see the other post about that...

This is in fact a bug in Interchange, as discussed here:

http://rt.icdevgroup.org/Ticket/Display.html?id=229

Regards
          Racke



-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team




More information about the interchange-users mailing list