Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions config/schema/artifacts/datastore_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1520,6 +1520,7 @@ index_templates:
enabled: true
_source:
excludes:
- workspace_id2
- internal_name
- internal_details.*
settings:
Expand Down Expand Up @@ -1570,6 +1571,9 @@ indices:
value: Address
_size:
enabled: true
_source:
excludes:
- full_address
settings:
index.mapping.ignore_malformed: false
index.mapping.coerce: false
Expand Down
25 changes: 2 additions & 23 deletions config/schema/artifacts/runtime_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1933,6 +1933,7 @@ index_definitions_by_name:
__counts.shapes|type:
source: __self
full_address:
retrieved_from: doc_values
source: __self
geo_location.lat:
source: __self
Expand Down Expand Up @@ -3211,6 +3212,7 @@ index_definitions_by_name:
weight_in_ng_str:
source: __self
workspace_id2:
retrieved_from: doc_values
source: __self
workspace_name:
source: workspace
Expand Down Expand Up @@ -3342,9 +3344,6 @@ object_types_by_name:
cursor:
resolver:
name: object_without_lookahead
highlights:
resolver:
name: object_without_lookahead
node:
resolver:
name: object_without_lookahead
Expand All @@ -3356,11 +3355,6 @@ object_types_by_name:
timestamps:
resolver:
name: object_with_lookahead
AddressHighlights:
graphql_fields_by_name:
full_address:
resolver:
name: get_record_field_value
AddressTimestamps:
graphql_fields_by_name:
created_at:
Expand Down Expand Up @@ -5951,10 +5945,6 @@ object_types_by_name:
name_in_index: widget_workspace_id3
resolver:
name: get_record_field_value
workspace_id:
name_in_index: workspace_id2
resolver:
name: get_record_field_value
workspace_name:
resolver:
name: get_record_field_value
Expand Down Expand Up @@ -9155,10 +9145,6 @@ object_types_by_name:
name_in_index: the_opts
resolver:
name: get_record_field_value
workspace_id:
name_in_index: workspace_id2
resolver:
name: get_record_field_value
workspace_name:
resolver:
name: get_record_field_value
Expand Down Expand Up @@ -9732,9 +9718,6 @@ object_types_by_name:
fees:
resolver:
name: get_record_field_value
full_address:
resolver:
name: get_record_field_value
id:
resolver:
name: get_record_field_value
Expand Down Expand Up @@ -9773,10 +9756,6 @@ object_types_by_name:
name_in_index: the_opts
resolver:
name: get_record_field_value
workspace_id:
name_in_index: workspace_id2
resolver:
name: get_record_field_value
workspace_name:
resolver:
name: get_record_field_value
Expand Down
35 changes: 0 additions & 35 deletions config/schema/artifacts/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,6 @@ type AddressEdge {
"""
cursor: Cursor

"""
Specific search highlights for this `Address`, providing matching snippets for the requested fields.
"""
highlights: AddressHighlights

"""
The `Address` of this edge.
"""
Expand Down Expand Up @@ -238,16 +233,6 @@ type AddressGroupedBy {
timestamps: AddressTimestampsGroupedBy
}

"""
Type used to request desired `Address` search highlight fields.
"""
type AddressHighlights {
"""
Search highlights for the `full_address`, providing snippets of the matching text.
"""
full_address: [String!]!
}

"""
Enumerates the ways `Address`s can be sorted.
"""
Expand Down Expand Up @@ -7957,11 +7942,6 @@ type NamedEntityHighlights {
"""
widget_workspace_id: [String!]!

"""
Search highlights for the `workspace_id`, providing snippets of the matching text.
"""
workspace_id: [String!]!

"""
Search highlights for the `workspace_name`, providing snippets of the matching text.
"""
Expand Down Expand Up @@ -18532,11 +18512,6 @@ type WidgetHighlights {
"""
the_options: WidgetOptionsHighlights

"""
Search highlights for the `workspace_id`, providing snippets of the matching text.
"""
workspace_id: [String!]!

"""
Search highlights for the `workspace_name`, providing snippets of the matching text.
"""
Expand Down Expand Up @@ -19700,11 +19675,6 @@ type WidgetOrAddressHighlights {
"""
fees: MoneyHighlights

"""
Search highlights for the `full_address`, providing snippets of the matching text.
"""
full_address: [String!]!

"""
Search highlights for the `id`, providing snippets of the matching text.
"""
Expand Down Expand Up @@ -19765,11 +19735,6 @@ type WidgetOrAddressHighlights {
"""
the_options: WidgetOptionsHighlights

"""
Search highlights for the `workspace_id`, providing snippets of the matching text.
"""
workspace_id: [String!]!

"""
Search highlights for the `workspace_name`, providing snippets of the matching text.
"""
Expand Down
4 changes: 4 additions & 0 deletions config/schema/artifacts_with_apollo/datastore_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1520,6 +1520,7 @@ index_templates:
enabled: true
_source:
excludes:
- workspace_id2
- internal_name
- internal_details.*
settings:
Expand Down Expand Up @@ -1570,6 +1571,9 @@ indices:
value: Address
_size:
enabled: true
_source:
excludes:
- full_address
settings:
index.mapping.ignore_malformed: false
index.mapping.coerce: false
Expand Down
25 changes: 2 additions & 23 deletions config/schema/artifacts_with_apollo/runtime_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1962,6 +1962,7 @@ index_definitions_by_name:
__counts.shapes|type:
source: __self
full_address:
retrieved_from: doc_values
source: __self
geo_location.lat:
source: __self
Expand Down Expand Up @@ -3240,6 +3241,7 @@ index_definitions_by_name:
weight_in_ng_str:
source: __self
workspace_id2:
retrieved_from: doc_values
source: __self
workspace_name:
source: workspace
Expand Down Expand Up @@ -3371,9 +3373,6 @@ object_types_by_name:
cursor:
resolver:
name: object_without_lookahead
highlights:
resolver:
name: object_without_lookahead
node:
resolver:
name: object_without_lookahead
Expand All @@ -3385,11 +3384,6 @@ object_types_by_name:
timestamps:
resolver:
name: object_with_lookahead
AddressHighlights:
graphql_fields_by_name:
full_address:
resolver:
name: get_record_field_value
AddressTimestamps:
graphql_fields_by_name:
created_at:
Expand Down Expand Up @@ -6074,10 +6068,6 @@ object_types_by_name:
name_in_index: widget_workspace_id3
resolver:
name: get_record_field_value
workspace_id:
name_in_index: workspace_id2
resolver:
name: get_record_field_value
workspace_name:
resolver:
name: get_record_field_value
Expand Down Expand Up @@ -9284,10 +9274,6 @@ object_types_by_name:
name_in_index: the_opts
resolver:
name: get_record_field_value
workspace_id:
name_in_index: workspace_id2
resolver:
name: get_record_field_value
workspace_name:
resolver:
name: get_record_field_value
Expand Down Expand Up @@ -9861,9 +9847,6 @@ object_types_by_name:
fees:
resolver:
name: get_record_field_value
full_address:
resolver:
name: get_record_field_value
id:
resolver:
name: get_record_field_value
Expand Down Expand Up @@ -9902,10 +9885,6 @@ object_types_by_name:
name_in_index: the_opts
resolver:
name: get_record_field_value
workspace_id:
name_in_index: workspace_id2
resolver:
name: get_record_field_value
workspace_name:
resolver:
name: get_record_field_value
Expand Down
35 changes: 0 additions & 35 deletions config/schema/artifacts_with_apollo/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,6 @@ type AddressEdge {
"""
cursor: Cursor

"""
Specific search highlights for this `Address`, providing matching snippets for the requested fields.
"""
highlights: AddressHighlights

"""
The `Address` of this edge.
"""
Expand Down Expand Up @@ -271,16 +266,6 @@ type AddressGroupedBy {
timestamps: AddressTimestampsGroupedBy
}

"""
Type used to request desired `Address` search highlight fields.
"""
type AddressHighlights {
"""
Search highlights for the `full_address`, providing snippets of the matching text.
"""
full_address: [String!]!
}

"""
Enumerates the ways `Address`s can be sorted.
"""
Expand Down Expand Up @@ -8239,11 +8224,6 @@ type NamedEntityHighlights {
"""
widget_workspace_id: [String!]!

"""
Search highlights for the `workspace_id`, providing snippets of the matching text.
"""
workspace_id: [String!]!

"""
Search highlights for the `workspace_name`, providing snippets of the matching text.
"""
Expand Down Expand Up @@ -18855,11 +18835,6 @@ type WidgetHighlights {
"""
the_options: WidgetOptionsHighlights

"""
Search highlights for the `workspace_id`, providing snippets of the matching text.
"""
workspace_id: [String!]!

"""
Search highlights for the `workspace_name`, providing snippets of the matching text.
"""
Expand Down Expand Up @@ -20023,11 +19998,6 @@ type WidgetOrAddressHighlights {
"""
fees: MoneyHighlights

"""
Search highlights for the `full_address`, providing snippets of the matching text.
"""
full_address: [String!]!

"""
Search highlights for the `id`, providing snippets of the matching text.
"""
Expand Down Expand Up @@ -20088,11 +20058,6 @@ type WidgetOrAddressHighlights {
"""
the_options: WidgetOptionsHighlights

"""
Search highlights for the `workspace_id`, providing snippets of the matching text.
"""
workspace_id: [String!]!

"""
Search highlights for the `workspace_name`, providing snippets of the matching text.
"""
Expand Down
6 changes: 3 additions & 3 deletions config/schema/widgets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
t.field "id", "ID!"

# Here we use an alternate name for this field since it's the routing field and want to verify
# that `name_in_index` works correctly on routing fields.
t.field "workspace_id", "ID", name_in_index: "workspace_id2"
# that `name_in_index` works correctly on routing fields, including when fetched from doc values.
t.field "workspace_id", "ID", name_in_index: "workspace_id2", retrieved_from: :doc_values

# It's a bit funny we have both `amount_cents` and `cost` but it's nice to be able to test
# aggregations on both a root numeric field and on a nested one, so we are keeping both here.
Expand Down Expand Up @@ -448,7 +448,7 @@
# We use `indexing_only: true` here to verify that `id` can be an indexing-only field.
t.field "id", "ID!", indexing_only: true

t.field "full_address", "String!"
t.field "full_address", "String!", retrieved_from: :doc_values
t.field "timestamps", "AddressTimestamps"
t.field "geo_location", "GeoLocation"

Expand Down
Loading