Skip to content
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

Contact not found in Craft search, but it exists in the CSV export #508

Open
alexanderbuergin opened this issue Dec 10, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@alexanderbuergin
Copy link

Bug Report

We’re using the Campaign plugin in a project and currently have approximately 5,000 contacts registered. We’re encountering the following issue:

When we search for a specific email address within the Craft CMS interface (under “All Contacts”), the contact does not appear in the search results.

However, if we export the contact list as a CSV file, the email address is visible in the exported data.

Here’s what we’ve tried so far to resolve the issue:
1. We used the Command-Line Interface (CLI) to resave all contacts (craft campaign/contacts/resave). This ran without any errors, but the issue persists.
2. We suspect the problem might be related to the search index, but we couldn’t find any information about rebuilding or updating the search index for the Campaign plugin in the documentation.

Our Questions:
• Is there a way to rebuild or refresh the search index for the Campaign plugin?
• Could the issue stem from another area we haven’t considered?

We would appreciate any support or guidance on resolving this issue.

Thank you in advance!

Plugin Version

3.5.7

Craft CMS Version

5.5.4

PHP Version

No response

@alexanderbuergin alexanderbuergin added the bug Something isn't working label Dec 10, 2024
@bencroker
Copy link
Collaborator

You can try rebuilding your search indexes using the command:
php craft resave/contacts --update-search-index

Reference: https://craftcms.com/docs/5.x/system/searching.html#rebuilding-your-search-indexes

@alexanderbuergin
Copy link
Author

--update-search-index did the trick. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants