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

Search and Custom Publications #420

Open
m-pokrovskii opened this issue Aug 18, 2018 · 3 comments
Open

Search and Custom Publications #420

m-pokrovskii opened this issue Aug 18, 2018 · 3 comments

Comments

@m-pokrovskii
Copy link

m-pokrovskii commented Aug 18, 2018

Hi. Any tips on how I can search within another publication? Thanks.

@ricaragao
Copy link
Member

Can you explain more ?

@evolross
Copy link

evolross commented Apr 16, 2019

I'm using a custom publication to insert some fields from other collections into the main collection I'm publishing. I was hoping by doing this in the server publication code that the data-table would get access to search and sorting of fields that weren't originally in the main collection... nope.

Is true denormalization of the data to the main collection you're displaying the only way to get access to search and sort on fields/columns that aren't in the main collection you're displaying?

The docs mention one publication that figures out the _ids needed then another that you can override with pub that actually queries the docs. I'm thinking it's the first publication that handles the sorting, searching, and pagination. Would probably need to override that.

@smohantyCME
Copy link

You can use changeSelector on Server side of the Table creation. https://atmospherejs.com/aldeed/tabular#modifying-the-selector. Modify _ids there and it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants