POLDER-Crew / polder-federated-search

A federated search project for POLDER.
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

SPARQL full text query error: field "isAccessibleForFree" was indexed without position data; #187

Closed yemoski closed 1 year ago

yemoski commented 1 year ago

If you put in a search string inside double quotes, like "Greenland ice", you get java.lang.IllegalStateException: field "isAccessibleForFree" was indexed without position data; cannot run PhraseQuery (phrase=isAccessibleForFree:"arctic bay coralline algae d18o data from 1967 2008 ce")

yemoski commented 1 year ago

Is it the full text search specification that's messing us up? I think so

yemoski commented 1 year ago

That's because the type field is for the type of THING we are indexing (e.g. schema.org/Dataset), so it doesn't really help with this.

yemoski commented 1 year ago

I tried to modify the general Lucene connector settings to only index fields of type xsd:string. But now I don't get any search results...

yemoski commented 1 year ago

Manually specifying the datatype as xsd:boolean did not help, either.

yemoski commented 1 year ago

That didn't fix it.

yemoski commented 1 year ago

I think I need an " "analyzed": false, "multivalued": false" in the turtle, per Lucene GraphDB Connector — GraphDB 10.1.0 documentation

yemoski commented 1 year ago

that's a boolean field so clearly something needs to happen differently here