Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the index field names to allow for flexible AND narrow searches #2466

Closed
hswami opened this issue Oct 5, 2018 · 0 comments
Closed

Comments

@hswami
Copy link
Contributor

hswami commented Oct 5, 2018

The current indexing produces fields that are named as follows:

Content.BodyAspect.Body
Content.ContentItem.Author
Content.ContentItem.ContentItemId
Content.ContentItem.ContentItemVersionId
Content.ContentItem.ContentType
Content.ContentItem.CreatedUtc
Content.ContentItem.DisplayText
Content.ContentItem.DisplayText.Analyzed
Content.ContentItem.Latest
Content.ContentItem.ModifiedUtc
Content.ContentItem.Owner
Content.ContentItem.Published
Content.ContentItem.PublishedUtc
ContentItemId
LandingPage.About.Milestone.Date
LandingPage.About.Milestone.HtmlBodyPart
LandingPage.About.Milestone.TitlePart
LandingPage.AutoroutePart
LandingPage.Clients.Client.TitlePart
LandingPage.Portfolio.Project.Category
LandingPage.Portfolio.Project.HtmlBodyPart
LandingPage.Portfolio.Project.TitlePart
LandingPage.Services.Service.HtmlBodyPart
LandingPage.Services.Service.TitlePart
LandingPage.Team.TeamMember.Occupation
LandingPage.Team.TeamMember.TitlePart
LandingPage.TitlePart

This allows searches to be very narrow in answering the kinds of queries that say "show me all the places I can find X in field named TitlePart in content of type Service in bag part named Services in (page) content of type LandingPage".

However this naming scheme makes it difficult to build broader searches to answer questions like the following:

  1. show me all the places I can find X in field named TitlePart that appears anywhere
  2. show me all the places I can find X in field named TitlePart that appears in content of type Service that appears anywhere
  3. show me all the places I can find X in field named TitlePart that appears in content of type Service in bag part named Services that appears anywhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant