The Wayback Machine - https://web.archive.org/web/20200529140340/https://github.com/nextapps-de/flexsearch/issues/84
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

Index Complex Document More Example Needed #84

Open
mhmttosun opened this issue Apr 29, 2019 · 2 comments
Open

Index Complex Document More Example Needed #84

mhmttosun opened this issue Apr 29, 2019 · 2 comments
Assignees
Labels

Comments

@mhmttosun
Copy link

@mhmttosun mhmttosun commented Apr 29, 2019

Hi
I can't figure out how to index bolded field in this complex document. If you have to time to look, I appreciate.

data.docx

var doc = [{
id: 14,
name: "xxxxx",
code: "0001",
term: 1,
term_id: 1,
Programs: {
program_name: "Surgery",
Program_Kind: {
name: "Precourse",
short_name: "OL"
},
Course_Kind: {
short_name: "Distance Edu",
abrv: "UE"
}
},
Course_Instructor: [
{
id: 13,
Instructors: {
f_name: "Me",
l_name: "Me",
Title: {
name: "Prof. Dr."
}
}
},
{
id: 14,
Instructors: {
f_name: "xys",
l_name: "uipk",
Title: {
name: "Prof. Dr."
}

            }
        }
    ]
}

];

#36

@ts-thomas ts-thomas self-assigned this Apr 29, 2019
@Vokinloksar
Copy link

@Vokinloksar Vokinloksar commented Jun 6, 2019

@mhmttosun I think it's better to format your code for better readability.

I got the same issue considering documentation for field search as well. It took me about 2 hours to understand how to search through a simple Array:Object data structure, I think maybe it's better to link field search directly under Search items part, so that readers don't have to check the whole doc to find it. like this:

Search items

Index.search(string | options, , )

index.search("John");

+ See also Field Search

@ts-thomas
Copy link
Contributor

@ts-thomas ts-thomas commented Jun 14, 2019

@Vokinloksar That's a good point, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.