Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users

swish search inside a loop.

 

 

Interchange users RSS feed   Index | Next | Previous | View Threaded


lists at gmnet

Sep 25, 2009, 3:52 PM

Post #1 of 6 (1140 views)
Permalink
swish search inside a loop.

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"
|]

Thanks
Rick





--
This message has been scanned for viruses and
dangerous content by Green Mountain Network, and is
believed to be clean.


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


racke at linuxia

Sep 25, 2009, 10:35 PM

Post #2 of 6 (1057 views)
Permalink
Re: swish search inside a loop. [In reply to]

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


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


racke at linuxia

Sep 25, 2009, 11:22 PM

Post #3 of 6 (1054 views)
Permalink
Re: swish search inside a loop. [In reply to]

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"
> |]
>

Of course it is a bug if it doesn't work, but why don't you try
[search-region search="..."] ?

Regards
Racke


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


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


racke at linuxia

Sep 26, 2009, 8:38 AM

Post #4 of 6 (1052 views)
Permalink
Re: swish search inside a loop. [In reply to]

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"
> |]

OK, please use the two letter search parameters, e.g st=swish instead
of mv_searchtype=swish. That hopefully fixes your issue.

Regards
Racke



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


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


lists at gmnet

Sep 26, 2009, 2:19 PM

Post #5 of 6 (1048 views)
Permalink
Re: swish search inside a loop. [In reply to]

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...

Thanks!
Rick


--
This message has been scanned for viruses and
dangerous content by Green Mountain Network, and is
believed to be clean.


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


racke at linuxia

Sep 28, 2009, 2:30 AM

Post #6 of 6 (1036 views)
Permalink
Re: swish search inside a loop. [In reply to]

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


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Interchange users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.