> Hi,
>
> Our search is no longer working. Any search string gets this error:
>
> Notice: Undefined index: search_max_length_for_bifcontains in
> <...>apps/ontowiki/r<...>/libraries/Erfurt/Erfurt/Store/Adapter/
> Virtuoso.php on line 463
>
> Has something recently changed?
Yes, this option was added regarding your feature request that very
short query strings should match exactly instead of bif:contains match.
I've added a config option to config.ini.dist:
; affect the main search: searches <= 4 will be exact search (instead of bif:contains)
store.virtuoso.search_max_length_for_bifcontains = "4"
So add this to your config and you will get exact searches for strings
with 1 to 4 chars and the notice will disappear.
Anyway, there should be a correct test for the value.
That was my fault and is fixed now.
Best regards
Sebastian Tramp
--
WebID: http://sebastian.tramp.name
On Thu, Jan 12, 2012 at 12:26 AM, Sebastian Tramp
<tr...@informatik.uni-leipzig.de> wrote:
> Yes, this option was added regarding your feature request that very
> short query strings should match exactly instead of bif:contains match.
>
THANK YOU! :)
we had made this change in the virtuoso source code (libsrc/Wi/text.c):
(f (leading < 3)" inwp_wildcard_range() function
should we change it back to "4"?
also, is "exact search" case sensitive?
> I've added a config option to config.ini.dist:
>
> ; affect the main search: searches <= 4 will be exact search (instead of bif:contains)
> store.virtuoso.search_max_length_for_bifcontains = "4"
>
> So add this to your config and you will get exact searches for strings
> with 1 to 4 chars and the notice will disappear.
>
strange. I see that we have this in our OntoWiki config file (as of Dec. 5):
line 31:
https://github.com/UDFR/OntoWiki/blob/develop/config.ini-dist
yet we still get the "Notice: Undefined index:
search_max_length_for_bifcontains" error.
We have another instance running which has not updated the erfurt in
2012, and we are able to search with no errors. It is not using the
exact search because
we do get an error for a two-character search.
Perhaps we are not using this config.ini-dist, but another one. I will
be able to confirm with Abhishek tomorrow morning.
> Anyway, there should be a correct test for the value.
> That was my fault and is fixed now.
Ah, I see. So we should re-merge with develop branch and this should work?
thanks again!!
best regards,
lisa
> > Anyway, there should be a correct test for the value That was my .
> > fault and is fixed now .
>
> Ah, I see. So we should re-merge with develop branch and this should
> work?
yes, this issue is fixed in
https://github.com/AKSW/Erfurt/commit/cb1261f6e5fbdb835eb57d270060f79ed4c72296
Hi Lisa, phil fixed this yesterday in erfurt. can you test it?
Best regards
Sebastian Tramp
> F
--
WebID: http://sebastian.tramp.name