RavenDB in version 4.0
Questions tagged [ravendb4]
55 questions
1
vote
1 answer
RavenDB 4 - Retrieve index name given its AbstractIndexCreationTask class implementation
As for the title, I'm trying to retrieve the name of a specific index at runtime.
The indexes are already registered at application startup with the
IndexCreation.CreateIndexes(/*[assembly]*/, documentStore);
But at query time I need to know (for…

tanathos
- 5,566
- 4
- 34
- 46
1
vote
1 answer
How do we create a RavenETL Task programatically in RavenDB 4?
here is my scenario,
I have 2 databases
Db1 has many collections but I want to replicate "Products" collection to another database DataStaging_Db1
in RavenDB 3.5 I was able to achieve that by adding a system…

Sajid Ali
- 719
- 2
- 7
- 21
1
vote
1 answer
How can I "Add or Update" a document
So I know I can patch, I know I can store, and I know I can put, but what I'm clear on is how can I do an "upsert" type operation, where I want to add the object if it doesn't exist, or patch it if it does.
Is this possible in RavenDb 4.1+ ?
Right…

Sinaesthetic
- 11,426
- 28
- 107
- 176
1
vote
2 answers
Connecting to ravendb using node.js
I'm currently trying to set up a small project with node.js and ravendb. But when I try to connect to the ravendb test server or a local server I get the following error:
(node:20336) UnhandledPromiseRejectionWarning: AllTopologyNodesDownException:…

studiobram
- 41
- 5
1
vote
1 answer
RavenDB query with projection with parent and last child entry for certain date range
Let's say I have Post and a Collection of Comments,
public class Post {
String title;
List comments;
}
public class Comment {
Date date;
String author;
String comment;
}
I would like to be able to know for a certain post title what is…

JohnSilver
- 11
- 2
1
vote
0 answers
RavenDB on docker behind traefik
I'm trying to install Secured RavenDB on docker swarm with Traefik as reserved proxy. But, it's none of successful.
I can make the installation work to the last page. But at state Restart Server, it doesn't work anymore. The page show up: Internal…

Cephas PAD
- 82
- 9
1
vote
1 answer
BulkInsert error with RavenDB: Document id must have a non empty value
I am using the BulkInsert operation of RavenDB 4.0.6 to insert a bunch of products:
using (var bulk = Store.BulkInsert())
{
foreach (var p in products)
{
p.Id = string.Empty; // <-- notice this
await…

Juliën
- 9,047
- 7
- 49
- 80
1
vote
1 answer
Having problems with ordering by numeric value
I have JSON data in my collection similar to following example. There is a icCount property with numeric value. Now when I issue a query with order specified by icCount, its sorted as text and not numeric value (see screenshot below). Index is…

David Marko
- 2,477
- 3
- 27
- 58
1
vote
1 answer
How to rename RavenDB database using ClientAPI?
Is there a way of renaming a RavenDB database from code by using ClientAPI and operations?

Luka
- 4,075
- 3
- 35
- 61
1
vote
0 answers
RavenDB-4: System.ArgumentOutOfRangeException: Position cannot be negative, but was -4554
I got this error when trying to search for some data and their RavenDB attachments, but I don't really understand what is going wrong.
System.ArgumentOutOfRangeException: Position cannot be negative, but was -4554
Parameter name: pos
This is the…

Tom Aalbers
- 4,574
- 5
- 29
- 51
1
vote
2 answers
Many-to-many relationship RavenDb: Document structure and index
How to you build a NoSQL model and index (preferably for RavenDb v4) for the following relational schema?
Document type Contact, where each record can have multiple additional properties (type of the property is defined in CustomField and the value…

Alex Klaus
- 8,168
- 8
- 71
- 87
1
vote
0 answers
RavenDb JavaScript JS Client Create Database
Is it even possible to check if a database exists and then create one if it doesn't, using the NodeJs RavenDb Client?
I've got as fair as this (index.js):
const mainStore = DocumentStore.create(URLS.database,…

Callum Linington
- 14,213
- 12
- 75
- 154
1
vote
1 answer
Find the intersection of two lists using the RavenDB 4 LINQ provider
How can you query RavenDB 4 to find documents which have a list of documents matching items from a input list?
The following used to work in RavenDB 3 but isn't supported in 4:
List categories = new List() { "C#", "java" });
var…

Jon
- 377
- 2
- 11
1
vote
1 answer
Ravendb 4 - Create Index Programmatically
How to add a index to specific database in RavenDb 4. I see the function
new SearchableIndex().Execute(_documentStore);
How to specify the database, without setting the default database as part of document store initialization. I wish to pass the…

Abhay Naik
- 410
- 3
- 15
0
votes
0 answers
Session.SaveChanges() does not work on latest page
Have a quote application, which we fill the data and send from source system to receiver system. That receiver system will be sending status of that quote(Success/Failed) as Acknowledgement to source system. We have an option to revise the same…

Nikita
- 17
- 5