How can we check status document (synchronized or not ) in couchbase Lite - couchbase-lite

I'm new with couchbase Lite and Sync Gateway, When I add a new document in the off-line mode the document not synchronized , how can I check whether document synchronize to sever or not ?
Many Thanks!

Answer to the same question from the Couchbase Forum:
The iOS/Mac [and Java] implementation has a method CBLReplication.isDocumentPending that does this (in versions 1.2+.) I don't think it's been ported to the other implementations yet.
https://forums.couchbase.com/t/how-can-we-check-status-document-synchronized-or-not-in-couchbase-lite/8614

Related

Does SpringData Couchbase provide any way to get realtime events?

I have a question related to Couchbase eventing. In Firebase/Firestore DB you can use a nice feature where you can be registered through the API to be notified when for example a new document is created or updated. I need to do the same thing with Couchbase but the Couchbase Event system is more like the old PLSQL or similar language to trigger some actions between DB objects and executing some action according to that, but I want a more reactive/real-time approach using Java SDK.
Do you know if is it possible to do that with just Couchbase (something like a listener without curl function)?
Also, I tried to do a test with SpringDataCouchbase using a simple findAll. That operation returns a Flux but it's a finite flux that finishes when all items are retrieved.
Thx for your help.
Disclaimer: I work for Couchbase as a product manager for the Eventing service.
If you've already evaluated the Eventing service and decided it doesn't meet your requirements, I would direct you to a similar topic How to capture save or update events in Couchbase
Note, we are actively working on adding a developer preview feature to Eventing similar to Amazon's Simple Queue Service to the next major Couchbase release.

viranode project [duplicate]

My website uses Mongo as its database. I was wondering if the Java driver from the Mongo website applies to Android as well because I read that it wasn't supported.
Simpy put it's not a good Idea for your Android app to connect to MongoDB directly in the first place.
You should be thinking as if it was just another web client and implement a RESTful interface for all the data you want to exchange or update. Look at these links as a possibility or otherwise roll your own interface.
MongoDB should be supported on Android since 2.9.0
Based on this : https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10006&version=11124
This may be helpful :
http://www.mkyong.com/tutorials/java-mongodb-tutorials/

Sitecore with Oracle Commerce/ATG 11.3 and Endeca

Can anyone advice if is it possible Sitecore would work with Oracle Commerce/ATG 11.3 and Endeca?
There is no reason why it can't be integrated, it depends how deeply you want to integrate it. For example SiteCore exposes a RESTful API that allows you to get to individual content items.
Since you mention Endeca as well, I assume you want to be able to index the content too? For that you will probably have to develop your own CAS connector, potentially hooking in to the SiteCore search functionality.
There may be other APIs to hook into as well but since your question is whether it is possible. The answer is still 'Yes'.
As for whether it is the right solution, that is a different question. What does SiteCore give you that the BCC doesn't? Can you migrate from SiteCore to the BCC? Does SiteCore expose other APIs that will allow them to be 'read-only' stores in an ATG application (BCC or Storefront)? Many options exist.

How to build parent child relationship search in Elastic-search using Liferay API's?

We have a custom entity in Liferay called 'Publication'. It is indexed in Elastic-search and contains a field named 'journalArticleId'.
Based on our search requirements if some user searches for any keyword in the journal article we have to return the publication document which contains the 'journalArticleId' of the respective journal.
I found the solution for implementing this using Java API but I'm looking for the Liferay API to solve this.
Elastic Search Parent-Child Data Search Java API
Thanks in advance for any response.
for the extension of existing indexers you should try to implement an indexer post processor hook ... instead of actually overriding them with an ext plugin
link for 6.2
https://dev.liferay.com/de/develop/tutorials/-/knowledge_base/6-2/extending-the-indexer-post-processor-using-a-hook
link for 7 aka dxp
https://dev.liferay.com/de/develop/reference/-/knowledge_base/7-0/indexer-post-processor
You should be able to find documentation for overriding an indexer. It sounds like you could just extend the existing Journal Indexer: Just add the additional Publication data to the full text index for the existing Journal article and it will be found automatically.
Edit (after your comment): Without looking it up, I assume that Liferay's encapsulation of the API does not really cater for parent-child relationships (but: I might be wrong, it might be in or easy). However, Liferay also allows you to exchange Elasticsearch with SOLR (and potentially others) so its API naturally doesn't use all of the features of the underlying search engines. However, you should always be able to make the extra calls yourself - probably not in the indexer but closer to the ES adapter.
The solution might be: Prepare the content in the Indexer and separate it into parent and child later, in the Elasticsearch adapter.
The elastic search provides features for parent-child mapping and the solution for the above situation can be implemented using Java API.
Elastic Search Parent-Child Data Search Java API
We have contacted the Liferay support team and they responded that the Liferay-elasticsearch adapter doesn't support this feature yet.
version : liferay-dxp-digital-enterprise-7.0-sp3

What books/tutorials are available on the topic of Couchbase lite for iOS?

I am a new developer using Couchbase Lite in iOS with the language Swift. I've read the documentation multiple times, however, I am still left confused on how to take advantage of views and queries. I have found one resource, Pro Couchbase Server, which only provided one minimally detailed section on Couchbase Lite for iOS. Are there any resources, other than what I have mentioned, for understanding how to properly structure views and make complicated queries?
They Couchbase Mobile Developer portal is a great resource for learning about Views and Queries.
And can look at the Couchbase Mobile forums for other specific questions too.

Resources