-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
problem while working with elasticsearch-mapper-attachments plugin #972
Comments
Hey @jacyuan I'm assuming you're trying to apply the term vector options to the attachment metadata field mappings (author, title, etc..), and not the attachment field itself. You can't use the Instead, try using the fluent API:
Or at the time you're creating the index:
|
Hello @gmarz, Thank you very much for ur help. This solution works well. While waiting for solutions, we also tried to supply mapping for a type, explicitly by doing a http put request with a json mapping file. As u v mentioned, u may deprecate the use of attributes in later version of nest (since this solution works currently only for attributes with simple data type). Thanks again |
Great, glad that worked! It's hard to say now without giving it more thought, but I would say no- if we were to deprecate attributes, we would have to do so in a way that would still allow mapping properties of a class automatically so that you wouldn't have to explicitly setup each mapping manually. |
@jacyuan Hi Jacyuan... I am working on something similar to yours.. I have a folder in which i have some documents(pdf,.doc, .docx) and i have to read all of the documents in the folder and index them to ES server.(using NEST) I searched a lot on google for some possible solution and couldnt find any. Can you please help me in solving this. (like how do i start, what should be the flow be like or any sample code if you have) TIA :) |
Hello,
I got a little trouble while trying to use Nest with elasticsearch-mapper-attachments plugin.
In fact, the mapping from attributs defined in a class doesn't seem work well.
The detail is here listed in stack overflow
http://stackoverflow.com/questions/25917386/client-net-nest-with-attachment-highlight-feature
Appreciate if you can give me some advice on it.
Thank you very much
Yuan
The text was updated successfully, but these errors were encountered: