<@U070QUUKY> What exactly is the issue?
# box-products
b
@megger What exactly is the issue?
I see your screenshot, but there is no error. You rana command and it gave you some output.
If you were expecting something else, I'd reach out to the Pixl8 guys for support with their custom module
m
Indeed it's not an error message. The thing is, that the result should be filtered by
"type": "preside-skeletons",
and suddenly the result is wrong (includes all preside extensions, not only the skeletons) and since nothing changed on the pixl8 stuff nor commandbox the assumption was, that maybe forgebox doesn't respect the filter anymore due to some changes. We already reported this to the Pixl8 team.
b
There was a ForgeBox release this week so it's entirely psosible there was a regression
Can you share more information about what exact forgebox command or API call is being made?
cc/ @Javier Quintero
m
This is what's called:
var forgeboxEntries = forgebox.getEntries( searchTerm = "preside-skeleton-" );
(https://github.com/pixl8/Preside-CMS-CommandBox-Commands/blob/stable/commands/preside/new/site.cfc)
b
@Javier Quintero @jclausen Assuming the recent ForgeBox release started using our Elasticserach implementation can you please look into this
If the issue is search returning MORE records, this may just legitimately be a desired behavior of it working better 🙂
If the goal was to get all entries of a specific type, then the code should have been using the
typeSlug
parameter https://www.forgebox.io/type/preside-skeletons
m
the goal was to get a specific type. So Pixl8 needs to update the command
b
@madmike_de This CommandBox one-liner shows the proper search in action
Copy code
repl "$wirebox.getInstance('forgebox').getEntries(typeSlug='preside-skeletons')" | jq results | printTable title,slug,typeSlug,latestVersion
Which is also the equivalent to this
Copy code
forgebox show type=preside-skeletons
j
I was taking a look at this particular case and yes the thing is that now that Elastic Search is our default search engine the search returns more records. with the previous implementation if you passed
preside-skeleton-
as the search term would bring back just the records that the slug contained the string
preside-skeleton-
so actually, the search has never looked for the package type but the title, slug, summary, or author. @bdw429s @madmike_de @megger
b
We improved the ForgeBox search to use Elastic search so it's going to do a MUCH better job at doing fuzzy keyword matching than it did before 😉
j
you can use the typeSlug param to look for the type as @bdw429s mentioned
m
Thank you guys!