Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1749

Support lucene field names in jena text queries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 3.13.0
    • Jena 3.13.1
    • Text
    • None

    Description

      Until recent changes made during implementation of JENA-1723, it was possible to have a Lucene text query that used Lucene field names.  With the implementation of JENA-1723 such queries result in a exception

      For example:

      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
      
      Cannot parse 'text:street: the ': Encountered " ":" ": "" at line 1, column 11.
      

      This is a simplified query from a running production system that works in 3.12.0 but is failing in 3.13.0-SNAPSHOT.

      Some discussion and analysis of this issue has occurred in email:

      https://lists.apache.org/thread.html/ccc1d5c5eaebcddafc2dbae85f3b5901396e3ab203df6bb4014e8270@%3Cusers.jena.apache.org%3E

       

      Attachments

        1. stacktrace.txt
          8 kB
          Brian McBride

        Issue Links

          Activity

            People

              code-ferret Code Ferret
              bwm Brian McBride
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m