[ic] Products from second table not appearing in search results?
Gert van der Spoel
gert at 3edge.com
Fri Jul 3 08:30:18 UTC 2009
> -----Original Message-----
> From: interchange-users-bounces at icdevgroup.org [mailto:interchange-
> users-bounces at icdevgroup.org] On Behalf Of IC
> Sent: Thursday, July 02, 2009 8:26 PM
> To: interchange-users at icdevgroup.org
> Subject: Re: [ic] Products from second table not appearing in search
> results?
>
> > >>>> Your search is explicitly set for "fi=products". You can
> explicitly
> > >>>> change it to "fi=products2" or remove the designation in which
> case
> > it
> > >>>> will search all tables listed in DefaultTables.
> > >>>>
> > >>>>
> > >>
> >
> http://www.interchange.rtfm.info/icdocs/Search_parameters.html#mv_searc
> h_f
> > >>>> ile_fi
> > >>>>
> > >>>>
> > >>>> Peter
> > >>>>
> > >>> Hi Peter,
> > >>>
> > >>> I was referring to the built in search, ie typing in the search
> box of
> > >> the
> > >>> demo catalog, this will not search my products2 table despite me
> > having
> > >>> set:-
> > >>>
> > >>> ProductFiles products2
> > >>> DefaultTables products2
> > >>>
> > >>> It always returns zero results.
> > >> Look in templates/components/search_box_small for mv_search_file.
> > >>
> > >>
> > >> Peter
> > >>
> > >
> > > There is no mv_search_file set in the component, I cannot find
> anything
> > that
> > > is limiting the search to products, any other suggestions?
> >
> > Is the variable MV_DEFAULT_SEARCH_TABLE set?
> >
>
> Not that I know of, this is a default IC 5.6.0 demo catalog, nothing
> else
> has been changed.
There is a file in the interchange installation directory, not in your
catalog directory, called
catalog_before.cfg (and a catalog_after.cfg for that matter)
This file contains the following lines:
## Deprecated, could be removed in IC 5.2
Variable MV_DEFAULT_SEARCH_FILE products
Variable MV_DEFAULT_SEARCH_TABLE products
It does not seem too deprecated to me as it is overruling the ProductFiles
directive on catalog level (as you have noticed).
If you have access to the catalog_before.cfg file you can change the line
to:
Variable MV_DEFAULT_SEARCH_TABLE products products2
If you cannot access the Interchange installation configuration files then
alternatively you can add the following line to
templates/components/search_box_small :
<INPUT TYPE=hidden NAME=mv_searchtype VALUE="products,products2">
That should also have the results you are looking for.
All in all quite unclear and something that needs to be looked into, as the
deprecation does not seem to be very clear (not are the catalog_before.cfg
and catalog_after.cfg files imho).
CU,
Gert
More information about the interchange-users
mailing list