Questions tagged [mappings]

55 questions
1
vote
1 answer

Templates being ignored when multiple Elsticsearch outputs are used in the same Logstash config file

I wrote a Logstash config file with three file inputs (all of them are log files), three filters (each of them with a different pattern) and three elasticsearch outputs (each of them goes to a different index). Each index has a different template…
1
vote
1 answer

Use Python API to conditionally update ElasticSearch document

I am trying to update a document (by appending elements to a list), or create if it does not exists. For example, I want the document with id == Donald_Duck to add the elements of the list suggestions, if not present already. name =…
meto
  • 3,425
  • 10
  • 37
  • 49
1
vote
1 answer

How to modify the index template used by the nutch index writer for elasticsearch?

Out of the box the nutch index writer for elasticsearch generates an index in elasticsearch with the name provided in nutch-site.xml (or nutch-default.xml) in the property element: elastic.index
wbartussek
  • 1,850
  • 1
  • 10
  • 8
1
vote
1 answer

Grails package change for domain class caused DuplicateMappingException

While working through a tutorial to start learning Grails, I made a mistake and ran: grails create-domain-class com.FooBar instead of: grails create-domain-class com.acme.FooBar It was immediately obvious I had made an error so I tried the…
Stryder
  • 85
  • 1
  • 5
1
vote
2 answers

Elasticseach, Type Properties vs Type Mappings, what's the difference?

I would appreciate if someone could please help to understand what is the real difference between creating a type in the following two forms: Using “mappings” PUT /mybestfares_test1 { "mappings": { "bestfares_data": { …
jdiaz4517
  • 269
  • 1
  • 3
  • 8
1
vote
1 answer

How can I map one to one relationship in Fluent NHibernate. I have tried everything else

I have this table structure and would like to map it using Fluent Hibernate (subclass if possible). I cannot change the structure because the database has too many records and might cause major applications rework. It would be easier if the Id from…
RM.
  • 13
  • 2
1
vote
1 answer

How do i define ElasticSearch Dynamic Templates?

I'm trying to define dynamic templates in Elastic Search to automatically set analysers for currently undefined properties for translations. E.g. The following does exactly what i want, which is to set lang.en.title to use the english analyzer: PUT…
Andy Burton
  • 566
  • 6
  • 12
1
vote
2 answers

LINQ to NHibernate can't get to children's children

I have entity A which has an IList of B called Bs and B has an IList of C called Cs. I want to search for all A's which have at least 5 C's in them. So I went and wrote using (var s = this._sessionFactory.OpenSession()) { IQueryable q =…
Andrei Rînea
  • 20,288
  • 17
  • 117
  • 166
0
votes
2 answers

One-to-one mapping with Fluent NHibernate not working

I have 2 tables (Labour and LabourPosition). Instead of having a fki to the LabourPosition table from the Labour table, I'd like to use an object (theLabourer.LabourPosition.Nameinstead of getLabourPosition(theLabourer.LabourPositionId). I've read a…
Daniel Minnaar
  • 5,865
  • 5
  • 31
  • 52
0
votes
1 answer

fluent nhibernate - Many to Many relationship with attribute on relationship

I have my code working, but I'm getting 2 extra columns in the table/ddl, to represent a Many to Many relationship, ~~but~~ with attributes (scalars) on the relationship. I am using 1.2.0.712 (FluentNHibernate.dll) 3.1.0.4000…
granadaCoder
  • 26,328
  • 10
  • 113
  • 146
0
votes
1 answer

Map shared folder on another domain using net.exe in a c# Windows Service application

I am trying to map a network drive on to the server inside a windows service written in c#. I tried using net.exe with below code System.Diagnostics.Process p = new System.Diagnostics.Process(); p.StartInfo.UseShellExecute = false; …
karry
  • 3,270
  • 3
  • 18
  • 31
0
votes
2 answers

Fluent NHibernate one-one mapping through additional table

I have a table A that has a references to a table B through a third table C. C contains the primary key of A and B. For each A there is at most one record in C. When I try to create a mapping for A such that I am referencing B, I use the References…
eulerfx
  • 36,769
  • 7
  • 61
  • 83
0
votes
2 answers

Fluent NHibernate? Am I doing this correctly?

I am new to using Fluent NHibernate and NHibernate for the first time. I've used a custom written mapper since about 2000 that was written in house. Made a switch to LinqToSQL about 2 years ago, and about 6 months ago to Entities. I'd like to see…
Sean
  • 2,496
  • 7
  • 32
  • 60
0
votes
1 answer

two aggregate roots in fluent nhibernate

The problem is that I have two aggregate roots The Aggregate roots are Project. NewsArticle. A Project can have a collection of related NewsArticle. A NewsArticle can have a collection of related Projects. The requirements are that: A user can…
0
votes
0 answers

Generic mapping with Automapper

I would like to create a generic/common mapping that will be the equivalent of the following mappings but with single line. cfg.CreateMap>().ConvertUsing>(); cfg.CreateMap
Riana
  • 689
  • 6
  • 22