I've just spotted something in the documentation that means this
discussion is going to get a little more complicated.
I will therefore start a separate thread.
Brian
On 31/08/2019 22:40, Chris Tomlinson wrote:
Hi Brian,
The Lucene version changed in 3.10.0 to 7.4 from 6.4 in 3.9.0 (and earlier). I
don’t think this has anything to do with the problem though.
I’m surprised that the query you indicate works in 3.9.0. It looks like what’s
intended is a phrase query but it needs to be surrounded by double quotes:
?s text:query (“\”street: the\”” 3000000)
the Lucene query is created by taking the default field name, “text” is this
case and dropping the query string in, giving:
text:string: the
as the query, which looks like two Lucene field names concatenated.
Without the inner double quotes Lucene will treat the query string as a OR of
terms:
string: OR the
The “:” could be escaped like
?s text:query (“street\\: the” 3000000)
Which would be an OR.
I don’t think any of this has changed sice 3.3.0
Regards,
Chris
On Aug 31, 2019, at 3:08 PM, Brian McBride <[email protected]>
wrote:
2) I ran our integration tests with the 3.13.0-SNAPSHOT installed and got a
JENA text problem. A simplifed version of the query is:
[[
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX text: <http://jena.apache.org/text#>
PREFIX ppd: <http://landregistry.data.gov.uk/def/ppi/>
PREFIX lrcommon: <http://landregistry.data.gov.uk/def/common/>
SELECT * {
?ppd_propertyAddress
text:query ( "street: the" 3000000 ) .
} LIMIT 1
]]
The fuseki log shows
[[
Cannot parse 'text:street: the ': Encountered " ":" ": "" at line 1, column 11.
]]
This works in 3.9.0.
Our application indexes multiple properties in different fields.
--
------------------------------------------------------------------------
Brian McBride
[email protected]
Epimorphics Ltd www.epimorphics.com
Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
Tel: 01275 399069
Epimorphics Ltd. is a limited company registered in England (number 7016688)
Registered address: Court Lodge, 105 High Street, Portishead, Bristol
BS20 6PT, UK