New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
salsah auto completion returns no or incomplete results #1196
Comments
the request generated by
and it returns 4 resources. ( When issuing the same request without the The documentation says that:
So it should not change the number of resources found, only the number of properties displayed to the found resources. The problems probably comes from the sparql query generated by the code in: And there is a test for it in ResourcesResponderV1Spec.scala So let's try to formalise it in code. |
Getting a development stack and adding a testrunning the tests before modifying themI get lost everytime doing that, writing it down as notes for myself (and maybe for others).
Notes:
|
Please don't catch val maybeProperties: Option[String] = row.rowMap.get("properties")
maybeProperties match {
case Some(propertiesReturned) => // do something with the properties
case None => // do something if there are no properties
} |
* WIP: proto-testcase with debug statement and removed tests * for debug, to be reverted * making extra values optionnal * skipping empty values for numprops>1 * changed code according to #1196 (comment) * adding back the test in the rest of the test case * reverting change to log the sparql request * reduce log level * more specific function name (added comments)
Hi @loicjaouen, I'm just looking at this again because I'm trying to get Fuseki to work again (#1375). I now realise that I don't understand what you mean by using |
Hi @benjamingeer . @loicjaouen is in holiday, so I will try to answer on his behalf. In Salsah 1.5, in the advanced search interface when a resource is linked to another with a link property, by using In this context, In the data entry form, it works in the same way : It works as well if you use |
@mrivoal To get all possible matches, do you have to type @tobiasschweizer Do you know anything about this? It seems to work with GraphDB but not with Fuseki, and since The Lucene syntax documentation says that you can't use |
The research only works if you enter 3 characters. Only one, be it |
OK, so maybe we need to treat this as a special case. |
I think we expect at least three characters. But the handling in v1 and two is not the same. I think in v1 it is handled directly in the sparql template, in in v2, I created a utility function. I would like to unify this. Currently I am on the train back to Basel from Hamburg. I could look at it next wee if it is still an issue then. |
That would be great. I'll be on holiday next week, and I think you know a lot more about Lucene than I do. |
I think I could spend a whole week on this. Lucene is quite powerful, but preprocessing is needed, e.g., to use AND when submitting several terms separated by space (OR is the default). You could also make a refactoring issue of Lucene handling in v1 and v2 and assign it to me. |
Btw: I am your new colleague. |
Glad to have you back! |
Our users complained about this and I think that it can be reproduced with
Anything
's test data.when looking at
Thing
s that are linked to otherThing
, we find 14 results:but when we count on the autocomplete to find them out, we find only 4 results:
The text was updated successfully, but these errors were encountered: