Skip to content
This repository was archived by the owner on Aug 31, 2022. It is now read-only.
This repository was archived by the owner on Aug 31, 2022. It is now read-only.

Search index items not findable #57

Open

Description

@wolfie90

When you add a item in a generated module it gets added to the search index as an active record. However, when searching for it in the frontend its not findable and the record is set to inactive in the database. I've tested it in Fork 3.7 as well as the older version. I can't find a solution, do you have any idea what this might be?

Activity

  1. WouterSioen commented on Sep 2, 2014

    @WouterSioen
    Owner

    Hmm, I'll have to test this. It could be the search function in the generated frontendModel returning an invalid dataset?

  2. wolfie90 commented on Sep 2, 2014

    @wolfie90
    Author

    It could relate to this issue from the fork repository: forkcms/forkcms#554 ?

  3. WouterSioen commented on Sep 2, 2014

    @WouterSioen
    Owner

    Nope, that's a completely different story. forkcms/forkcms#554 is caused by the blog installer not inserting search indices. In this case, we have search indices, but it goes wrong when fetching them.

    Can you add a var_dump in the search function in the frontendmodel of your module to check if it gets correct id's and returns the wanted items back? Note: you'll need to put your search indices to active again before testing this.

  4. wolfie90 commented on Sep 2, 2014

    @wolfie90
    Author

    Hmm, updated some forgotten uncapitalized pathnames and it seems to be working again in the newer Fork CMS versions. Still have issues with generated modules in a personal project where I use a older version of Fork (3.6), I will try what you mentioned above 😃.

  5. wolfie90 commented on Sep 2, 2014

    @wolfie90
    Author

    I'm getting an array with the all the ids from the module items, it returns an empty array. I did put the search indices that I wanted to a active status but unfortunately no results. The search indices have a 'title' and a 'information' field. I have compared the search functions from the model with other modules and it looks like it is the same so I'm not really sure where to look for a solution on this point. The other modules (f.e. pages) are working well when I activate them in the search settings.

  6. jeroendesloovere commented on Nov 24, 2014

    @jeroendesloovere
    Contributor

    Don't know if forkcms/forkcms#699 can help you, @timvanwolfswinkel?

  7. wolfie90 commented on Nov 24, 2014

    @wolfie90
    Author

    Unfortunately not @jeroendesloovere, I'm aware of the problems mentioned in that post. However, the problem I have seems to be somewhat else. I will try to look into it again in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions