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

No search results shown from Elasticsearch if results contains records from custom modules #8290

Open
Spinwing opened this issue Nov 21, 2019 · 3 comments
Labels
Area: Elasticsearch Issues & PRs related to all things regarding Elasticsearch Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Type: Bug Bugs within the core SuiteCRM codebase

Comments

@Spinwing
Copy link

Spinwing commented Nov 21, 2019

Issue

We have configured two additional modules via module builder. If elasticsearch is active, when the results contains records from any of those two custom modules, the search page looks empty (no results returned).

If the search does not contain records from any of those modules then the search results are correctly displayed.

Expected Behavior

Search page should display results for all modules including custom modules.

Actual Behavior

No errors in logs even if set to debug. Simply, the result page looks empty, just the title and the standard decorations. No records or table of any sort.

Steps to Reproduce

  1. Create a custom module, the simplest one is enough, in our case only the "name" field is present. 2. Create a second module, again the simplest form.
  2. Create a one-to-many relationship between the two. On the second create a many-to-many relationship with Contacts.
  3. Populate a record for each custom module, establish link, attach a few contacts.
  4. Activate elasticsearch and ensure the index is updated (i.e. robo)
  5. Run a search with a token you are sure you can find but that it does not exist in one of those two modules. Verify that the search returns records
  6. Run a search with a toke you know is in one of the two modules, the search should NOT return any record, even if by interrogating elasticsearch (curl/postman, robo elastic:search) you can observe records in there.

Context

While sing SuiteCRM in a large scale database, Elasticsearch is the perfect fit to deliver fast and accurate results with enriched syntax.

This bug should be considered medium priority, as Elasticsearch is a de facto standard for high performance queries.

Your Environment

SuiteCRM 7.11.8 (latest is bugged at time of issue therefore version hold), MariaDB 10.3, Apache2 2.4.41 Elasticsearch 5.6.16 on ubuntu 19.10

@tsitle
Copy link
Contributor

tsitle commented Feb 2, 2020

Maybe the PR #8513 solves the issue you're experiencing.
The current SuiteCRM 7.11.10 version has a bug that can prevent records that contain a link to a record that again contains a link to appear in the ElasticSearch search results.
Also no wildcard character ('*') is added to the search term so the search results may not contain all records you would expect.

@Mac-Rae Mac-Rae added the Area: Elasticsearch Issues & PRs related to all things regarding Elasticsearch label Feb 25, 2020
@samus-aran samus-aran added the Type: Bug Bugs within the core SuiteCRM codebase label Aug 31, 2020
@francescor
Copy link

is it still an issue? we are planning to use custom modules, but this would prevent us from doing so

@francescor
Copy link

We added module Project to our setup today (no custom), we added a project item, and we experience the same issue.

Any tip?

@Dillon-Brown Dillon-Brown added the Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution label Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Elasticsearch Issues & PRs related to all things regarding Elasticsearch Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

6 participants