Hi Magnus,

The limit is hard coded as a define in ~/libsrc/Wi/text.h of the open source 
archive :

#define WST_WILDCARD_MAX 1000

So you would need to increase this to a suitable value and recompile the 
Virtuoso binary for it to take effect. Note setting this value too high will 
make the execution of free text queries inefficient, consider having words 
'ABC', 'ABD', 'ABE' and wildcard 'AB*'  which in practice will be transformed 
to ABC OR ABD OR ABE , thus if  each of these returns a large number of matches 
the "OR"'ed list could become very long and thus rather inefficient/slow. We 
may consider making this a configurable option with an upper limit in the 
virtuoso.ini file in a future release.

Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support
Twitter: http://twitter.com/OpenLink

On 26 Nov 2009, at 12:02, Magnus Haraldsen Amundsen wrote:

> Is this limit value hard coded somewhere in the source code?
>  
> -Magnus
>  
> From: Magnus Haraldsen Amundsen 
> [mailto:[email protected]] 
> Sent: 25. november 2009 15:06
> To: [email protected]
> Subject: [Virtuoso-users] Set upper limit for matches from 
> bif:containswildcard
>  
> Hi,
>  
> We have a free text search query with bif:contains that has a wildcard that 
> gives more than 1000 matches. Virtuoso returns an error because of this, even 
> if the query is limited by ‘AND’ between all search terms:
>  
> 22015 Error FT038: wildcard has over 1000 matches
>  
> The query:
>  
> PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
> PREFIX owl: <http://www.w3.org/2002/07/owl#>
> PREFIX wdr: <http://www.w3.org/2007/05/powder#>
> PREFIX sub: <http://xmlns.computas.com/sublima#>
> DESCRIBE ?subject
> WHERE {
>   ?subject sub:literals ?lit .
>   ?lit <bif:contains> """'Forberedelse*' AND 'av' AND 'barn*' AND 'til*' AND 
> 'undersøkelse*' AND 'og' AND 'behandling*'""" .
>   ?subject a skos:Concept .
>   ?subject wdr:describedBy 
> <http://sublima.computas.com/status/godkjent_av_administrator> .
> }
>  
> How can we configure Virtuoso to allow more than 1000 matches?
>  
> Kind regards 
> 
> Magnus Haraldsen Amundsen
> Senior Knowledge Engineer
> Mobile: +47 920 95 243
> Email: [email protected]   
> Web: www.computas.com
> 
> |  SHARE YOUR KNOWLEDGE  |
> 
> Computas AS Lysaker Torg 45, POB 482, N-1327 Lysaker, Norway|Phone:+47 67 83 
> 10 00|Fax:+47 67 83 10 01
>  
>  
>  
> 
> 
> __________ Information from ESET NOD32 Antivirus, version of virus signature 
> database 4635 (20091125) __________
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset.com
> 
> 
> __________ Information from ESET NOD32 Antivirus, version of virus signature 
> database 4635 (20091125) __________
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset.com
> 
> 
> __________ Information from ESET NOD32 Antivirus, version of virus signature 
> database 4637 (20091125) __________
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset.com
> 
> 
> __________ Information from ESET NOD32 Antivirus, version of virus signature 
> database 4638 (20091126) __________
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset.com
> 
> 
> __________ Information from ESET NOD32 Antivirus, version of virus signature 
> database 4638 (20091126) __________
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset.com
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  
> http://p.sf.net/sfu/bobj-july_______________________________________________
> Virtuoso-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to