Skip to content

Gravsearch filter match string with spaces #1562

@gfoo

Description

@gfoo

Is there a way to force Lucene (behind the scene) to match a string with spaces?
In my example I try to match a title : la révolution vaudoise to the property bibliographicNoticeHasTitle.

So I tried to escape the double quote to enforce a string with spaces:

?bibliographicNoticeHasTitle knora-api:valueAsString ?bibliographicNoticeHasTitle_Value .
    FILTER knora-api:match(?bibliographicNoticeHasTitle_Value, "\"la révolution vaudoise\"")
}

but I get this error:

{
"knora-api:error":"org.knora.webapi.TriplestoreResponseException: Triplestore responded with HTTP code 400: MALFORMED QUERY: Lexical error at line 15, column 104.  Encountered: \" \" (32), after : \"Les\"",
"@context":
  { "knora-api":"http://api.knora.org/ontology/knora-api/v2#"}
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions