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

Search metadata #1080

Open
longshuicy opened this issue Jun 5, 2024 · 0 comments · May be fixed by #1126
Open

Search metadata #1080

longshuicy opened this issue Jun 5, 2024 · 0 comments · May be fixed by #1126
Assignees
Labels
enhancement New feature or request frontend Frontend specific (react)
Milestone

Comments

@longshuicy
Copy link
Member

Right now metadata is indexed with File and Dataset in ES.

# Add en entry to the file index
    doc = ElasticsearchEntry(
        resource_type="file",
        name=file.name,
        creator=file.creator.email,
        created=file.created,
        downloads=file.downloads,
        user_ids=authorized_user_ids,
        content_type=file.content_type.content_type,
        content_type_main=file.content_type.main_type,
        dataset_id=str(file.dataset_id),
        folder_id=str(file.folder_id),
        bytes=file.bytes,
        metadata=metadata,
        status=file.status,
    ).dict()

But missing ways to search them

<DataSearch
										title="Search for Datasets and Files"
										placeholder="Type in any keyword that you wish to search..."
										componentId="searchbox"
										autosuggest={true}
										highlight={true}
										queryFormat="and"
										fuzziness={0}
										debounce={100}
										react={{
											and: [
												"creatorfilter",
												"downloadfilter",
												"fromfilter",
												"tofilter",
											],
										}}
										// apply react to the filter
										URLParams={true}
										showFilter={true}
										showClear={true}
										renderNoSuggestion="No suggestions found."
										dataField={["name", "description", "creator.keyword"]}
										fieldWeights={[3, 2, 1]}
										innerClass={{
											title: "search-title",
											input: "search-input",
										}}
									/>
@longshuicy longshuicy added enhancement New feature or request frontend Frontend specific (react) labels Jun 5, 2024
@longshuicy longshuicy added this to the v2.0-beta-4 milestone Jun 6, 2024
@longshuicy longshuicy self-assigned this Jun 26, 2024
@longshuicy longshuicy linked a pull request Jun 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend Frontend specific (react)
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant