by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Blake Niemyjski
@niemyjski
I want to say don’t anaylze this and don’t index this field
Eric J. Smith
@ejsmith
you need to define the field that you are copy_to ‘ing
Blake Niemyjski
@niemyjski
you serious
Eric J. Smith
@ejsmith
yep
Blake Niemyjski
@niemyjski
this is going to make our defintions a nightmare
Eric J. Smith
@ejsmith
even though it doesn’t exist in the doc.
you have to define it and then do copy_to on the actual property.
and say not indexed on the real one too
Blake Niemyjski
@niemyjski
                .String(f => f.IndexName(Fields.Employee.CompanyId).NotAnalyzed())
                .String(f => f.Name(e => e.CompanyId).CopyTo(c => c.Fields(Fields.Employee.CompanyId)).Index(FieldIndexOption.No))
something like that
Eric J. Smith
@ejsmith
"mappings": {
"test": {
"properties": {
"name": {
"type": "object",
"properties": {
"first": {
"index": "no",
"copy_to": "name.fullname"
},
"last": {
"index": "no",
"copy_to": "name.fullname"
},
"fullname": {
"type": "string"
}
}
}
}
}
}
}
Blake Niemyjski
@niemyjski
with the root having everything
yeah good luck on that
marvel is broke as shit
can’t even view it
they screwed up big time on that
20 dam steps to install it and then it doesn’t work
errors out
Eric J. Smith
@ejsmith
lol
Blake Niemyjski
@niemyjski
Screen Shot 2016-03-31 at 4.00.07 PM.png

pile

install instructions went from 1 line in 1.x
to literally 15 steos
steps and then it says all green but doesn’t work
Eric J. Smith
@ejsmith
I’ve set that up and it was pretty straight forward… its just a spa app now.
Blake Niemyjski
@niemyjski
so if the field name doesn’t change
i guess you don’t need to do copy to
but I kinda feel like we should just to be consistent
and not screw ourselves
Eric J. Smith
@ejsmith
huh?
Blake Niemyjski
@niemyjski
                .String(f => f.Name(e => e.Id).IndexName(Fields.Employee.Id).NotAnalyzed())
                .String(f => f.IndexName(Fields.Employee.Id).NotAnalyzed())
                .String(f => f.Name(e => e.Id).CopyTo(c => c.Fields(Fields.Employee.Id)).Index(FieldIndexOption.No))
Eric J. Smith
@ejsmith
they are breaking shit left and right.
Blake Niemyjski
@niemyjski
yeah
Eric J. Smith
@ejsmith
guess they are trying to simplify
Blake Niemyjski
@niemyjski
yeah
Eric J. Smith
@ejsmith
which is good.
Blake Niemyjski
@niemyjski
so the first one
works
Eric J. Smith
@ejsmith
but it hurts.
Blake Niemyjski
@niemyjski
but almost feel like we should explicitly define it even if it has the same name
Eric J. Smith
@ejsmith
on top of making all these changes they don’t give you very good options to automate the upgrade process.
Blake Niemyjski
@niemyjski
yeah
Eric J. Smith
@ejsmith
should’ve done reindex fully baked before making all these breaking changes.
Blake Niemyjski
@niemyjski
yeah
this is going to be a super fun upgrade
Eric J. Smith
@ejsmith
bastards better calm down after this.
Blake Niemyjski
@niemyjski
agreed
ah
great hit an issue