Sorting or filtering search results by section?

General ShopSite user discussion

Sorting or filtering search results by section?

Postby Chris » Sat Jul 01, 2006 1:03 pm

Hi all

I'm new to the forum, but a happy shopsite Pro customer for over a year now.

Does anyone know a way to use templates or variables to have the search
results page be sorted by a particular field?

We're using a custom search template, which works fine, but we're about to
add a large new section to the website and I'd like to distinguish search
results between sections of the website.

Ideally, I'd like to have more than one search template, such that if
someone fires up the search, they get results presented using that search
template only. (maybe first results are from the section they started the
search from, then secondly from other sections of the store.)

Any suggestions are welcome.
Thanks,
Chris
www.gentlemansemporium.com
Chris
 

Re: Sorting or filtering search results by section?

Postby Chris » Fri Jul 14, 2006 2:11 pm

So... I assume there's no ideas on how to accomplish this?

Thanks,
Chris

"Chris" <chris@gentlemansemporium.com> wrote in message
news:e86ke5$plm$1@eval.shopsite.com...
Hi all

I'm new to the forum, but a happy shopsite Pro customer for over a year
now.

Does anyone know a way to use templates or variables to have the search
results page be sorted by a particular field?

We're using a custom search template, which works fine, but we're about to
add a large new section to the website and I'd like to distinguish search
results between sections of the website.

Ideally, I'd like to have more than one search template, such that if
someone fires up the search, they get results presented using that search
template only. (maybe first results are from the section they started the
search from, then secondly from other sections of the store.)

Any suggestions are welcome.
Thanks,
Chris
www.gentlemansemporium.com
Chris
 

Re: Sorting or filtering search results by section?

Postby loren_d_c » Fri Jul 14, 2006 2:50 pm

There is no sorting in the current search feature. Go get the results in
whatever order they are returned, you cannot choose any order or
re-arrange them in an order.

There is only one search template for the search feature. Perhaps you
can somehow use VARs in the search template that are set by the products
in the search results to get a certain look for the template, but I
wouldn't try to change the layout too much from the same template based
on the products found, because you would probably not get the results
you wanted.

-Loren


Chris wrote:
So... I assume there's no ideas on how to accomplish this?

Thanks,
Chris

"Chris" <chris@gentlemansemporium.com> wrote in message
news:e86ke5$plm$1@eval.shopsite.com...
Hi all

I'm new to the forum, but a happy shopsite Pro customer for over a year
now.

Does anyone know a way to use templates or variables to have the search
results page be sorted by a particular field?

We're using a custom search template, which works fine, but we're about to
add a large new section to the website and I'd like to distinguish search
results between sections of the website.

Ideally, I'd like to have more than one search template, such that if
someone fires up the search, they get results presented using that search
template only. (maybe first results are from the section they started the
search from, then secondly from other sections of the store.)

Any suggestions are welcome.
Thanks,
Chris
www.gentlemansemporium.com


loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Sorting or filtering search results by section?

Postby Chris » Fri Jul 14, 2006 3:29 pm

OK, thanks Loren. Good to know there's nothing built in, and good ideas to
get me thinking about something home grown.

If I come up with a workable solution, I'll post it back here for public
consumption.

Cheers,
Chris
www.gentlemansemporium.com



"Loren" <loren_d_c@yahoo.com> wrote in message
news:e993jd$krd$1@eval.shopsite.com...
There is no sorting in the current search feature. Go get the results in
whatever order they are returned, you cannot choose any order or
re-arrange them in an order.

There is only one search template for the search feature. Perhaps you
can somehow use VARs in the search template that are set by the products
in the search results to get a certain look for the template, but I
wouldn't try to change the layout too much from the same template based
on the products found, because you would probably not get the results
you wanted.

-Loren


Chris wrote:
So... I assume there's no ideas on how to accomplish this?

Thanks,
Chris

"Chris" <chris@gentlemansemporium.com> wrote in message
news:e86ke5$plm$1@eval.shopsite.com...
Hi all

I'm new to the forum, but a happy shopsite Pro customer for over a year
now.

Does anyone know a way to use templates or variables to have the search
results page be sorted by a particular field?

We're using a custom search template, which works fine, but we're about
to
add a large new section to the website and I'd like to distinguish
search
results between sections of the website.

Ideally, I'd like to have more than one search template, such that if
someone fires up the search, they get results presented using that
search
template only. (maybe first results are from the section they started
the
search from, then secondly from other sections of the store.)

Any suggestions are welcome.
Thanks,
Chris
www.gentlemansemporium.com


Chris
 

Re: Sorting or filtering search results by section?

Postby Scott Norman » Tue Jul 18, 2006 2:04 pm

The only other option is to use a Thirdy Party program to do your
searches. For a customer, we used PHPDig, phpdig.net, to search pages,
and then displayed the results we wanted. I also used a separte MySQL
database for storing the products and having those displayed on the
page. I used the Shopsite XML feed to do the products.

Now with 8.1 coming out and being in SQLite database, you actually have
the ability to access the database directly and wrote your own search
in Perl, PHP, etc. I've pulled down the SQLite database and have looked
it in SQLite, working on accessing through PHP.


Scott
YourHost.com

Chris wrote:
OK, thanks Loren. Good to know there's nothing built in, and good ideas to
get me thinking about something home grown.

If I come up with a workable solution, I'll post it back here for public
consumption.

Cheers,
Chris
www.gentlemansemporium.com



"Loren" <loren_d_c@yahoo.com> wrote in message
news:e993jd$krd$1@eval.shopsite.com...
There is no sorting in the current search feature. Go get the results in
whatever order they are returned, you cannot choose any order or
re-arrange them in an order.

There is only one search template for the search feature. Perhaps you
can somehow use VARs in the search template that are set by the products
in the search results to get a certain look for the template, but I
wouldn't try to change the layout too much from the same template based
on the products found, because you would probably not get the results
you wanted.

-Loren


Chris wrote:
So... I assume there's no ideas on how to accomplish this?

Thanks,
Chris

"Chris" <chris@gentlemansemporium.com> wrote in message
news:e86ke5$plm$1@eval.shopsite.com...
Hi all

I'm new to the forum, but a happy shopsite Pro customer for over a year
now.

Does anyone know a way to use templates or variables to have the search
results page be sorted by a particular field?

We're using a custom search template, which works fine, but we're about
to
add a large new section to the website and I'd like to distinguish
search
results between sections of the website.

Ideally, I'd like to have more than one search template, such that if
someone fires up the search, they get results presented using that
search
template only. (maybe first results are from the section they started
the
search from, then secondly from other sections of the store.)

Any suggestions are welcome.
Thanks,
Chris
www.gentlemansemporium.com



Scott Norman
 

Re: Sorting or filtering search results by section?

Postby Chris » Fri Jul 21, 2006 10:49 am

Hi Scott

Good leads, thanks. I'll check out phpdig.

Yes, I saw 8.1 was in sqlite.. any pointers you have on going directly into
the 8.1 db (sample code, hooks, etc) would be very welcome.

Thanks,
Chris
www.gentlemansemporium.com



"Scott Norman" <scott@yourhost.com> wrote in message
news:e9jido$31t$1@eval.shopsite.com...
The only other option is to use a Thirdy Party program to do your
searches. For a customer, we used PHPDig, phpdig.net, to search pages,
and then displayed the results we wanted. I also used a separte MySQL
database for storing the products and having those displayed on the page.
I used the Shopsite XML feed to do the products.

Now with 8.1 coming out and being in SQLite database, you actually have
the ability to access the database directly and wrote your own search in
Perl, PHP, etc. I've pulled down the SQLite database and have looked it in
SQLite, working on accessing through PHP.


Scott
YourHost.com

Chris wrote:
OK, thanks Loren. Good to know there's nothing built in, and good ideas
to get me thinking about something home grown.

If I come up with a workable solution, I'll post it back here for public
consumption.

Cheers,
Chris
www.gentlemansemporium.com



"Loren" <loren_d_c@yahoo.com> wrote in message
news:e993jd$krd$1@eval.shopsite.com...
There is no sorting in the current search feature. Go get the results in
whatever order they are returned, you cannot choose any order or
re-arrange them in an order.

There is only one search template for the search feature. Perhaps you
can somehow use VARs in the search template that are set by the products
in the search results to get a certain look for the template, but I
wouldn't try to change the layout too much from the same template based
on the products found, because you would probably not get the results
you wanted.

-Loren


Chris wrote:
So... I assume there's no ideas on how to accomplish this?

Thanks,
Chris

"Chris" <chris@gentlemansemporium.com> wrote in message
news:e86ke5$plm$1@eval.shopsite.com...
Hi all

I'm new to the forum, but a happy shopsite Pro customer for over a
year
now.

Does anyone know a way to use templates or variables to have the
search
results page be sorted by a particular field?

We're using a custom search template, which works fine, but we're
about to
add a large new section to the website and I'd like to distinguish
search
results between sections of the website.

Ideally, I'd like to have more than one search template, such that if
someone fires up the search, they get results presented using that
search
template only. (maybe first results are from the section they started
the
search from, then secondly from other sections of the store.)

Any suggestions are welcome.
Thanks,
Chris
www.gentlemansemporium.com


Chris
 


Return to User Forum

Who is online

Users browsing this forum: No registered users and 103 guests