Giter Site home page Giter Site logo

Comments (13)

emodric avatar emodric commented on May 23, 2024

@plozmun Are you using Solr in your app? Filter service is not using Solr search engine to fetch the content, while eZ Search service does. This might be the cause of the discrepancy in results between filter service and search service. To verify if that is the case, you can try using find service from this package and see what results you get with it. Find service is basically the same thing as filter service, but uses Solr as a backend instead of the database.

If that doesn't help, one other reason could be is that filter and find services automatically filter content and locations based on prioritized list of languages configured for the current siteaccess, which, again, search service from eZ does not.

from ezplatform-site-api.

plozmun avatar plozmun commented on May 23, 2024

No, i don't use Solr in the app. Then i can't use findService without Solr? With findService it works properly.

I have overide parameter:

    netgen.ezplatform_site.prioritized_languages:
        - 'esl-ES'
        - 'eng-GB'

but this does't work either

from ezplatform-site-api.

emodric avatar emodric commented on May 23, 2024

You can use find service even if you don't use Solr. Find service actually falls back to legacy if no Solr is present. I'm not sure why it gives different results from filter service if you don't use Solr. @pspanja do you have a clue why this would happen?

BTW, you should not override the netgen.ezplatform_site.prioritized_languages parameter, it is used internally and not meant to be configured directly.

from ezplatform-site-api.

pspanja avatar pspanja commented on May 23, 2024

@plozmun I've noticed in one case you use filterLocations() and in other findContent().
Is there any change in behavior if you search for the same on both sides, filterLocations() and findLocations() or filterContent() and findContent()?

from ezplatform-site-api.

plozmun avatar plozmun commented on May 23, 2024

I have try with filterContent and findContent and it`s the same.

It's strange because PermissionCriterionResolver returns false with filterService and true with ez Searchservice

from ezplatform-site-api.

plozmun avatar plozmun commented on May 23, 2024

I realized it's our fault. Close this issue. Sorry for the inconvenience .

Thank you

from ezplatform-site-api.

pspanja avatar pspanja commented on May 23, 2024

No worries @plozmun, good to know that you solved the problem 👍

from ezplatform-site-api.

plozmun avatar plozmun commented on May 23, 2024

i reopen it , sorry 😆

I dont know why the UserReference used by filter service is

UserReference {#1467 ▼
  -userId: 10
}

and admin is:

UserReference {#854 ▼
  -userId: 14
}

Do you know why?

from ezplatform-site-api.

pspanja avatar pspanja commented on May 23, 2024

That is coming from eZ Platform kernel, in default installation ID=10 is anonymous and ID=14 is admin. Are you testing that with different logins?

from ezplatform-site-api.

plozmun avatar plozmun commented on May 23, 2024

Nope, 😢

from ezplatform-site-api.

emodric avatar emodric commented on May 23, 2024

@plozmun We have identified the issue, however, it will take a couple of days to solve it as it is not really straightforward, so please be patient :)

from ezplatform-site-api.

pspanja avatar pspanja commented on May 23, 2024

Here we go: #67

@plozmun your feedback would be much appreciated!

from ezplatform-site-api.

pspanja avatar pspanja commented on May 23, 2024

Fixed by #67

@plozmun thanks for reporting this!

from ezplatform-site-api.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.