OyvindLGjesdal commented on issue #2094: URL: https://github.com/apache/jena/issues/2094#issuecomment-1830894623
Hi @filak and thanks for the precise examples, and thanks for the ping. I have some problems with replicating the issues described. One thing I notice in the test data is that the mx namespace isn't mentioned. What is the prefix mx: in *mx:alt_label*, is it just a typo in the example? I copied one of the existing tests using propLists to recreate the errors, and get the 3 expected results back when using the test-data, and no items back when I tried to replicate the other example. I first got the warning message ``` 23:03:36 WARN TextQueryPF :: Predicate not indexed: http://id.example.test/vocab/#alt_label 23:03:36 WARN TextQueryPF :: objectToStruct: props are not indexed [http://www.w3.org/2004/02/skos/core#prefLabel, http://www.w3.org/2004/02/skos/core#altLabel, http://www.w3.org/2000/01/rdf-schema#label, http://id.example.test/vocab/#alt_label] ``` during running the test, and had to add it to the text map, and rerun the test without a warning, to get the expected result back. ```diff " text:map (", " [ text:field \"label\" ; text:predicate rdfs:label ; text:noIndex true ]", " [ text:field \"altLabel\" ; text:predicate skos:altLabel ]", + " [ text:field \"alt_Label\" ; text:predicate mt:alt_label ]", " [ text:field \"prefLabel\" ; text:predicate skos:prefLabel ]", " [ text:field \"comment\" ; text:predicate rdfs:comment ]", " [ text:field \"workAuthorshipStatement\" ; text:predicate spec:workAuthorshipStatement ]", " [ text:field \"workEditionStatement\" ; text:predicate spec:workEditionStatement ]", " [ text:field \"workColophon\" ; text:predicate spec:workColophon ]", " ) ." ``` Was the *props are not indexed* step above silent when running? Not sure what happens with the second step, but one thing I thought of from the example above, was that maybe there was leftover documents in the lucene folder, if it wasn't deleted during debugging. I *think* that lucene deletions on documents aren't part of running the java command for reindexing. My information might be outdated or wrong on this, but we still delete the lucene folder, before running indexing on an offline database, during CI-jobs. See the two tests which pass at https://github.com/apache/jena/compare/main...OyvindLGjesdal:jena:debug-text-prop-not-working-in-some-cases -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
