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 plugin some times not working #12

Open
anilk9096 opened this issue Aug 8, 2019 · 5 comments
Open

search plugin some times not working #12

anilk9096 opened this issue Aug 8, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@anilk9096
Copy link

This was really a good plugin . but some time it was not working any workaround to overcome this issue even given full matched word not results displaying

@licaon-kter
Copy link

Which plugin exactly? Search? What Converse version?

@anilk9096
Copy link
Author

Search plugin . converse version 4.2.0

@anilk9096 anilk9096 changed the title some times not working search plugin some times not working Aug 13, 2019
@deleolajide
Copy link
Member

You may want to modify the max items value to cget a more consistent result. See

_converse.api.archive.query({before: '', max: 9999999, 'groupchat': type === "chatroom", 'with': jid}, messages =>

@alexanderadam
Copy link

If I may ask: what exactly is the max parameter responsible for?
Does it mean, that it's stopping to search any further after it searched through 9999999 records? 🤔

@deleolajide
Copy link
Member

Does it mean, that it's stopping to search any further after it searched through 9999999 records

Unless your server supports full text search, this plugin will requests for all chat history of the chatbox or chat rooom and then does an in-memory search client-side on the fetched chat history messages.

The max parameter tells the XMPP server MAM implementation to limit the messages sent over the wire to max. In most cases, the server already has its own limit.

@Echolon Echolon added the bug Something isn't working label Apr 3, 2021
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

5 participants