on 02-04-2019 1:13 PM
Hi Experts,
We are getting ModelNotFoundException while searching with DefaultItemModelSearchStrategy.getModelByExample().
But we are getting the results in backoffice and even flexible search.
hope this might be causing with restrictions, but getting the results in flexible search the same will applicable to getModelByExample() too.
Could you please confirm how they are invoking getModelByExample() is it on flexiblesearch or is there any otherway.
Thanks in advance
If you are executing the FS Query in hAC, the result will be different because you may be logged to hAC using admin/nimda
to which no restriction is applicable. The function, getModelByExample
uses FlexibleSearch. Did you try disbaling search restrictions using searchRestrictionService.disableSearchRestrictions()
?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do you create the model (new MyModel() or modelService.create(MyModel.class))?
If you use the second one, default values will be set to the Model.
You can also check the JDBC logging in the HAC to check the actual query.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.