Comments (7)
Well... it's worth noting this is not the only change needed for ES7 support: Elastix.Search.search
, Elastix.Document.index
, Elastix.Document.delete
and others have to have "type" arguments removed — for now, giving "_doc"
for the latter seems to work around that.
from elastix.
I ended up finding a way, just do the process of inserting the data and the attributes will be created automatically
Elastix.Document.index (elastic_url, "twitter", "_doc", "1", date)
But now I'm trying to find out how to search for a file that looks like it has been changed too.
from elastix.
Mapping.put(url, index_name, type, mapping, include_type_name: true)
should work.
from elastix.
Changed, now is like this:
Elastix.Document.index (elastic_url, "twitter", "_doc", "1", date)
from elastix.
I made a very basic module based on Elastix.Mapping that works to create an index in 7 without warnings:
defmodule Elastix.NewMapping do
import Elastix.HTTP, only: [prepare_url: 2]
alias Elastix.{HTTP, JSON}
def put(elastic_url, index_name, data) do
prepare_url(elastic_url, "/#{index_name}/_mapping")
|> HTTP.put(JSON.encode!(data))
end
end
Elastix.NewMapping.put(elastic_url, "search", %{
properties: %{
content: %{type: "search_as_you_type"}
}
})
from elastix.
@sb8244 Thanks, your workaround works.
Waiting for this to be resolved in the package.
from elastix.
Is it planned to support Elasticsearch 8? (mapping types are not supported anymore)
from elastix.
Related Issues (19)
- Set request headers/support non-shield authorization header? HOT 1
- Support for Document Partial Updates HOT 2
- Timeout on HTTP Request HOT 4
- Throwing away errors HOT 2
- Custom Headers/AWS auth. HOT 4
- Update the Hex repo with latest changes HOT 3
- Document.index_new is producing the wrong url HOT 3
- Release 0.5.0 dont have Count functionality in Elastix.search module HOT 1
- Elasticsearch host with path (http://myhost/namespacedir) is stripped of path (/namespacedir)
- Support for bulk indexing HOT 3
- API to update Settings HOT 1
- Search multiple indices HOT 2
- broken with latest version of HTTPoison HOT 2
- Wrong @spec for Index.exists?
- Comparison with elasticsearch-elixir? HOT 1
- Update poison version at the hex.pm
- Is it possible to override default HTTP lib used in elastix?
- Can not perform delete without auth options
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elastix.