ravendb-studio

Add extra column/field to RavenDB collection via RQL in Raven Studio

强颜欢笑 提交于 2020-05-15 07:44:29
问题 I'm trying to update the entire collection by adding an extra field to each entity. This doesn't do the trick: from things as t update { put( id(t), "NewField"); } Can someone help out with the syntax please ? Thanks ! 回答1: Just do: from things as t update { t.nameOfNewField = "valueOfNewField" } See: https://ravendb.net/learn/inside-ravendb-book/reader/4.0/2-zero-to-ravendb#patching-documents 来源: https://stackoverflow.com/questions/60413448/add-extra-column-field-to-ravendb-collection-via

Add extra column/field to RavenDB collection via RQL in Raven Studio

大城市里の小女人 提交于 2020-05-15 07:41:24
问题 I'm trying to update the entire collection by adding an extra field to each entity. This doesn't do the trick: from things as t update { put( id(t), "NewField"); } Can someone help out with the syntax please ? Thanks ! 回答1: Just do: from things as t update { t.nameOfNewField = "valueOfNewField" } See: https://ravendb.net/learn/inside-ravendb-book/reader/4.0/2-zero-to-ravendb#patching-documents 来源: https://stackoverflow.com/questions/60413448/add-extra-column-field-to-ravendb-collection-via

Add extra column/field to RavenDB collection via RQL in Raven Studio

纵然是瞬间 提交于 2020-05-15 07:41:14
问题 I'm trying to update the entire collection by adding an extra field to each entity. This doesn't do the trick: from things as t update { put( id(t), "NewField"); } Can someone help out with the syntax please ? Thanks ! 回答1: Just do: from things as t update { t.nameOfNewField = "valueOfNewField" } See: https://ravendb.net/learn/inside-ravendb-book/reader/4.0/2-zero-to-ravendb#patching-documents 来源: https://stackoverflow.com/questions/60413448/add-extra-column-field-to-ravendb-collection-via

The installer has encountered an unexpected error installing this package - .Error code 2896

我的未来我决定 提交于 2019-12-20 07:29:14
问题 I am currently trying to install ravendb on a prod server. The licens file I am using, is the same being used for another test/prod server. The installation seem to chrash all the time when i pass the license file to the installation. Something i found interesting in the log file was this. Action start 08:14:02: OpenLicenseFileChooser. MSI (c) (AC:A8) [08:14:02:763]: Invoking remote custom action. DLL: C:\Users\prod\AppData\Local\Temp\MSI7901.tmp, Entrypoint: OpenLicenseFileChooser MSI (c)

Lucene.Net range subquery not returning expected results (RavenDB related)

妖精的绣舞 提交于 2019-12-11 12:52:38
问题 I'm trying to write a lucene query to filter some data in RavenDB. Some of the documents in this specific collection are assigned a sequential number, and the valid ranges are not continuous (for example, one range can be from 100-200 and another from 1000 to 1400). I want to query RavenDB using Raven Studio (v2.5, the Silverlight client) to retrieve all documents that have values outside of these user-defined ranges. This is the overly simplified document structure: { ExternalId: something/1

Raven-Studio Index is returning different results to C# LINQ Query

断了今生、忘了曾经 提交于 2019-12-11 02:55:19
问题 I am learning RavenDB (Build 2851, Version 2.5.0 / 6dce79a) from Beginning Raven 2.x and am finding that the Raven-Studio is not filtering correctly. I have a table of cities in my database, storing their populations, locations etc. I have added an index in the code, using this: public class Cities_ByPopulation : AbstractIndexCreationTask<City> { public Cities_ByPopulation() { this.Map = cities => from city in cities select new { Population = city.Population }; // Generates as this in the

How do I find attachments in ravendb 3.5?

假装没事ソ 提交于 2019-12-11 00:07:33
问题 I'm currently debugging some code which is supposed to return an attachment for a given document, but no attachment is coming back. Raven studio indicates that there are attachments in the database - it shows me that a number of attachments exist - but I can't see, via the studio web UI, if a particular document has an attachment. Is there a way to query attachments via the studio UI? Also is there a way to tell if a document has an attachment via the studio UI? Online documentation don't

How to restrict access to admin panel in ravendb?

瘦欲@ 提交于 2019-12-09 10:49:38
问题 When running Raven.Server.exe by default admin panel is visible at IP:PORT address. How can I restrict access to this panel for specific users only? 回答1: Steve, we are running RavenDB as a windows service and use windows authentication to control access. If you want to use Windows Authentication, you can setup the configuration to only allow access by a windows group. That way you can restrict access to users by controlling who is in the windows group. <add key="Raven/Authorization/Windows

Securing the Raven Database

笑着哭i 提交于 2019-12-02 20:24:40
问题 I'm trying to restrict access to our RavenDB to only one user. After altering the settings to secure the DB, I can still access the RavenDB management studio and I'm not sure why. I'm running RavenDB as a windows service, and I'm using build 573. This is my Raven.Server.exe.config: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="Raven/Port" value="*"/> <add key="Raven/DataDir" value="~\Data"/> <add key="Raven/AnonymousAccess" value="None"/> <!-- Settings are

Securing the Raven Database

我的梦境 提交于 2019-12-02 07:59:36
I'm trying to restrict access to our RavenDB to only one user. After altering the settings to secure the DB, I can still access the RavenDB management studio and I'm not sure why. I'm running RavenDB as a windows service, and I'm using build 573. This is my Raven.Server.exe.config: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="Raven/Port" value="*"/> <add key="Raven/DataDir" value="~\Data"/> <add key="Raven/AnonymousAccess" value="None"/> <!-- Settings are Get, All, None --> <add key="Raven/Authorization/Windows/RequiredUsers" value="FS-6103\PrestoDatabaseUser