Voidi
(Tobias Wohlfarth)
September 25, 2023, 2:37pm
1
I want create Client program based on the NEST Library which queries an Index created with GitHub - dadoonet/fscrawler: Elasticsearch File System Crawler (FS Crawler) .
Most NEST tutorials show that i should create a class for the documents returned by a search request. But in the Tutorial — FSCrawler 2.10-SNAPSHOT documentation i cannot find information on how to do that.
As i totally new to Elasticsearch i may have overlooked something. Can anybody point me in the right direction?
dadoonet
(David Pilato)
September 25, 2023, 3:32pm
2
Welcome!
I don't know Nest to b honest but I guess you need to create a Nest object which represents the data structure built by FSCrawler...
I guess you can do it from the mapping:
{
"settings": {
"number_of_shards": 1,
"index.mapping.total_fields.limit": 2000,
"analysis": {
"analyzer": {
"fscrawler_path": {
"tokenizer": "fscrawler_path"
}
},
"tokenizer": {
"fscrawler_path": {
"type": "path_hierarchy"
}
}
}
},
"mappings": {
"dynamic_templates": [
{
This file has been truncated. show original
Or from the Java version of the objects:
/*
* Licensed to David Pilato (the "Author") under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Author licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package fr.pilato.elasticsearch.crawler.fs.beans;
This file has been truncated. show original
1 Like
Voidi
(Tobias Wohlfarth)
September 26, 2023, 10:03am
3
Thanks, this is a start.
As the response from Elasticsearch has property names that are reserved words in C# like object
and virtual
how do i specify a custom serialization mapping?
dadoonet
(David Pilato)
September 26, 2023, 10:28am
4
Ha! I guess that's a Nest question I can not answer. Sorry.
May be someone who is a Nest dev could help?
1 Like
Voidi
(Tobias Wohlfarth)
September 26, 2023, 12:20pm
5
1 Like
system
(system)
Closed
October 24, 2023, 12:20pm
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.