Mailing List Archive

Issue with upgrade to 5.10
I tested upgrading to 5.10 on my dev machine. Things mostly work, but
I'm having some issues with the Solr stuff that Racke helped me set up.
If I revert to 5.8.2, things again work.

If I try a solr search under 5.10, I see on the browser:
Sorry, there was an error in processing this form action. Please report
the error or try again later. (Can't locate object method "new" via
package "Interchange::Search::Solr" (perhaps you forgot to load
"Interchange::Search::Solr"?) at (eval 793) line 7. )

and in the catalog error log, stuff like:
[06/February/2016:20:51:49 +0000] SOLR /cgi-bin/SOLR/ajaxsearch.html
Missing: ajaxsearch.

Any thoughts why the custom code would stop working on 5.10?

DB

_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Re: Issue with upgrade to 5.10 [ In reply to ]
I don't have your upgrade because I upgraded from the Strap Store of 6
months ago.

For the first time I tried a novel search; Glimpse which is working nicely.

There is a Glimpse.pm in /usr/lib/interchange/lib/Vend/

Do you gave a /usr/lib/interchange/lib/Vend/Solr.pm or where is the code
that Racke set up?

I changed /var/lib/interchange/aussievitamin/variables/TOP_SEARCH to this:

<form action="[area search]" method=post class="navbar-form
navbar-right" role="search">
<input type=hidden name=mv_session_id value="[data session id]">
<INPUT TYPE=hidden NAME=mv_coordinate VALUE=1>
<INPUT TYPE=hidden NAME=mv_searchtype VALUE=glimpse>
<INPUT TYPE=hidden NAME=mv_matchlimit VALUE=[control matches 10]>
<INPUT TYPE=hidden NAME=mv_sort_field VALUE=category>
<INPUT TYPE=hidden NAME=mv_search_field VALUE="*">
<input type=hidden name=mv_substring_match value=1>
<INPUT TYPE=hidden NAME=mv_column_op VALUE=ne>
<INPUT TYPE=hidden NAME=mv_column_op VALUE=rm>
<INPUT TYPE=hidden NAME=mv_searchspec VALUE=1>
<INPUT MAXLENGTH=30 NAME=mv_searchspec type=text size=20
class="form-control" placeholder="Search">
</form>

..as the default was not useful in either search. For example searching
for Hilde Hemmes Biotta Vegetable Juice would yield nothing for Biotta
Juice. What does others' do out of the box? Same I guess?

root@ubuntu:/usr/lib/interchange# grep -r solr
root@ubuntu:/usr/lib/interchange# grep -r Solr
root@ubuntu:/usr/lib/interchange# grep -r SOLR
root@ubuntu:/usr/lib/interchange# grep -r ajax
strap/variables/JS:<script
src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>

If solr has a presence in my code there is certainly no trace of it. Did
Racke give you a list of the modules in which his custom code resides?
Do you have a copy of your pre upgrade code?

People are integrating Ajax search elsewhere. You could copy Glimpse.pm
and rename it Ajax.pm in Vend, then hack it according to how others have
integrated it.

Reitzenstein Interchange Consulting

DB wrote:
> I tested upgrading to 5.10 on my dev machine. Things mostly work, but
> I'm having some issues with the Solr stuff that Racke helped me set up.
> If I revert to 5.8.2, things again work.
>
> If I try a solr search under 5.10, I see on the browser:
> Sorry, there was an error in processing this form action. Please report
> the error or try again later. (Can't locate object method "new" via
> package "Interchange::Search::Solr" (perhaps you forgot to load
> "Interchange::Search::Solr"?) at (eval 793) line 7. )
>
> and in the catalog error log, stuff like:
> [06/February/2016:20:51:49 +0000] SOLR /cgi-bin/SOLR/ajaxsearch.html
> Missing: ajaxsearch.
>
> Any thoughts why the custom code would stop working on 5.10?
>
> DB
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>


_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Re: Issue with upgrade to 5.10 [ In reply to ]
On 02/07/2016 04:58 AM, Frank Reitzenstein wrote:
> I don't have your upgrade because I upgraded from the Strap Store of 6
> months ago.
>
> For the first time I tried a novel search; Glimpse which is working nicely.
>
> There is a Glimpse.pm in /usr/lib/interchange/lib/Vend/
>
> Do you gave a /usr/lib/interchange/lib/Vend/Solr.pm or where is the code
> that Racke set up?
>

We are using this module:

https://metacpan.org/pod/Interchange::Search::Solr

It isn't specific to Interchange 5 and can be used with any Perl software.

I prefer using actionmaps instead of the Interchange 5 search, which
is more flexible, effective and you have better control on the user
input.

If you are interested, I can offer some glue code we are using for
Interchange 5.

Regards
Racke

--
Perl and Dancer Development

Visit our Perl::Dancer conference 2015.
More information on https://www.perl.dance.


_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Re: Issue with upgrade to 5.10 [ In reply to ]
Thankyou. Is it much better than Glimpse?

Stefan Hornburg (Racke) wrote:
> On 02/07/2016 04:58 AM, Frank Reitzenstein wrote:
>> I don't have your upgrade because I upgraded from the Strap Store of 6
>> months ago.
>>
>> For the first time I tried a novel search; Glimpse which is working nicely.
>>
>> There is a Glimpse.pm in /usr/lib/interchange/lib/Vend/
>>
>> Do you gave a /usr/lib/interchange/lib/Vend/Solr.pm or where is the code
>> that Racke set up?
>>
> We are using this module:
>
> https://metacpan.org/pod/Interchange::Search::Solr
>
> It isn't specific to Interchange 5 and can be used with any Perl software.
>
> I prefer using actionmaps instead of the Interchange 5 search, which
> is more flexible, effective and you have better control on the user
> input.
>
> If you are interested, I can offer some glue code we are using for
> Interchange 5.
>
> Regards
> Racke
>


_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Re: Issue with upgrade to 5.10 [ In reply to ]
On 02/07/2016 02:54 PM, Frank Reitzenstein wrote:
> Thankyou. Is it much better than Glimpse?
>

I doubt I ever used Glimpse, the first search engine that I connected
to Interchange was Swish.

Solr is definitely worth to use for searches in your web shop
(unless you have very few items), it is really fast even on
big databases and the results are better.

Together with filters and search suggestions via Ajax makes it
really useful.

There is similar software around, like Elastic Search, which provides
about the same features.

Give it a try - it needs more work to set it up but it is definitely
worth it.

Regards
Racke

> Stefan Hornburg (Racke) wrote:
>> On 02/07/2016 04:58 AM, Frank Reitzenstein wrote:
>>> I don't have your upgrade because I upgraded from the Strap Store of 6
>>> months ago.
>>>
>>> For the first time I tried a novel search; Glimpse which is working nicely.
>>>
>>> There is a Glimpse.pm in /usr/lib/interchange/lib/Vend/
>>>
>>> Do you gave a /usr/lib/interchange/lib/Vend/Solr.pm or where is the code
>>> that Racke set up?
>>>
>> We are using this module:
>>
>> https://metacpan.org/pod/Interchange::Search::Solr
>>
>> It isn't specific to Interchange 5 and can be used with any Perl software.
>>
>> I prefer using actionmaps instead of the Interchange 5 search, which
>> is more flexible, effective and you have better control on the user
>> input.
>>
>> If you are interested, I can offer some glue code we are using for
>> Interchange 5.
>>
>> Regards
>> Racke
>>
>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>


--
Perl and Dancer Development

Visit our Perl::Dancer conference 2015.
More information on https://www.perl.dance.


_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Re: Issue with upgrade to 5.10 [ In reply to ]
Thanks again Racke. I am worn out from building more that three complex
sites since the strap came - over 5 months since building the server
plus my day job. I couldn't resist the modernization.

I will file your emails.


Stefan Hornburg (Racke) wrote:
> On 02/07/2016 02:54 PM, Frank Reitzenstein wrote:
>> Thankyou. Is it much better than Glimpse?
>>
> I doubt I ever used Glimpse, the first search engine that I connected
> to Interchange was Swish.
>
> Solr is definitely worth to use for searches in your web shop
> (unless you have very few items), it is really fast even on
> big databases and the results are better.
>
> Together with filters and search suggestions via Ajax makes it
> really useful.
>
> There is similar software around, like Elastic Search, which provides
> about the same features.
>
> Give it a try - it needs more work to set it up but it is definitely
> worth it.
>
> Regards
> Racke
>
>> Stefan Hornburg (Racke) wrote:
>>> On 02/07/2016 04:58 AM, Frank Reitzenstein wrote:
>>>> I don't have your upgrade because I upgraded from the Strap Store of 6
>>>> months ago.
>>>>
>>>> For the first time I tried a novel search; Glimpse which is working nicely.
>>>>
>>>> There is a Glimpse.pm in /usr/lib/interchange/lib/Vend/
>>>>
>>>> Do you gave a /usr/lib/interchange/lib/Vend/Solr.pm or where is the code
>>>> that Racke set up?
>>>>
>>> We are using this module:
>>>
>>> https://metacpan.org/pod/Interchange::Search::Solr
>>>
>>> It isn't specific to Interchange 5 and can be used with any Perl software.
>>>
>>> I prefer using actionmaps instead of the Interchange 5 search, which
>>> is more flexible, effective and you have better control on the user
>>> input.
>>>
>>> If you are interested, I can offer some glue code we are using for
>>> Interchange 5.
>>>
>>> Regards
>>> Racke
>>>
>>
>> _______________________________________________
>> interchange-users mailing list
>> interchange-users@icdevgroup.org
>> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>>
>


_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users