Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Zatvobor @Zatvobor
    Aleksey
    @Zatvobor
    #182 is still in the middle of development
    Jason Kendall
    @coolacid
    Just found Deprecated warning for a call within tirexs :: https://github.com/Zatvobor/tirexs/blob/master/lib/tirexs/query.ex#L423
    Aleksey
    @Zatvobor
    yeah. I know. Thanks
    All of these will be fixed in stable v0.8.0
    Aleksey
    @Zatvobor
    Going to take a look at, #203 issue.
    Also, would be great to get some thoughts about Resources.bump convenience.
      @doc """
      Tries to bump resource. This one just makes a request and behaves like a proxy to
      one of avalable resource helper. You're able to bump any resources which are defined in
      `Tirexs.Resources.APIs`.
    
      Let's consider the following use case:
    
          iex> path = Tirexs.Resources.APIs._refresh(["bear_test", "duck_test"], { [force: false] })
          "bear_test,duck_test/_refresh?force=false"
    
          iex> Tirexs.HTTP.post(path)
          { :ok, 200, ... }
    
      With bump, the same is:
    
          iex> bump._refresh(["bear_test", "duck_test"], { [force: false] })
          { :ok, 200, ... }
    
      It is also available for bumping some resources with request body:
    
          iex> search = [query: [ term: [ user: "zatvobor" ] ] ]
          iex> bump(search)._count("bear_test", "my_type")
    
      Play with resources you have and see what kind of HTTP verb is used.
      """
    Marco Tanzi
    @mtanzi
    Hello guys! I am trying to re-create an ES index, is there a way to override or force create an existing index with Tirexs?
    when I call Tirexs.Mapping.create_resource(index) here is the error I get:
    ** (CaseClauseError) no case clause matching: {:error, 400, %{error: "IndexAlreadyExistsException[[meddra_18_1_english] already exists]", status: 400}}
        (tirexs) lib/tirexs/dsl.ex:11: Tirexs.DSL.define/2
    Marco Tanzi
    @mtanzi
    Solved
    Ricky Marcelin
    @tsnuer
    Hey, where would be the best place to put the mappings? In a mix task or some place else?
    Aleksey
    @Zatvobor
    Right. The best way is to put the mappings in standalone *.exsfile and load them through Tirexs.load_file/1. Take a look at test/acceptances/examples_test.exs for more details... Finally, mix task would be useful for loading them...
    @mtanzi show me your solution.
    going to release v0.8.0-beta4 tomorrow
    Aleksey
    @Zatvobor
    @coolacid Wondering about issue #203. PR #207 contains a completely new version of Bulk API. Hope, this one should fix the issue. Let me know if I miss something.
    Marco Milanesi
    @kpanic
    Hey @Zatvobor :) Finally I joined this chat (hi)
    @Zatvobor sorry for being idle on tirexs, have been busy
    Aleksey
    @Zatvobor
    Welcome back! )
    Marco Tanzi
    @mtanzi
    Hi! I started using Tirexs and I have to say I really like the implementation! congrats!
    I am struggling though to model the mapping - I was looking into the source code and I couldn't find the part that support the 'multi-fields' https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html
    Marco Tanzi
    @mtanzi
    Alternatively I guess I can send the mapping directly as json using the API
    not 100% because I never used multi fields with tirexs
    *not 100% sure
    Marco Tanzi
    @mtanzi
    Oh thanks! Yes that should do the work!
    @kpanic I am migrating the elasticsearch service from ruby to elixir and it look so much cleaner! loving it!
    Marco Milanesi
    @kpanic
    @mtanzi glad that I helped! I am still learning elixir, contributing sporadically to tirexs and I have my own open source pet project based on tirexs
    Marco Milanesi
    @kpanic
    @mtanzi btw, I think you are Italian too ciao :)
    Marco Tanzi
    @mtanzi
    @kpanic yes I am italian - but have lived in london for quite a while now :)
    @kpanic I am also quite new with elixir but really enjoying the learning, the community behind it's great!
    Marco Milanesi
    @kpanic
    @mtanzi eheh, I live in Berlin since a while :smile: same page regarding the elixir community and the gentle attitude that Jose' is spreading :smile: I love it
    Marco Tanzi
    @mtanzi
    @kpanic Ah nice, Berlin is really cool - I will be there in May for the elixir conf
    Marco Milanesi
    @kpanic
    @mtanzi nice! I will not be in the conference, however if you want to meet give me a shout ;)
    opak
    @OpakAlex
    hi hi
    Marco Milanesi
    @kpanic
    hi :)
    Cristiano Carvalho
    @webofbits

    I am giving a try on tirexs
    my api is running through nanobox
    elasticsearch is up and running on http://172.20.0.10:9200/
    here's my config:

    config :tirexs, :uri, System.get_env("DATA_ELASTICSEARCH_HOST") <> ":9200"

    but when I try to add an index i get this:

    iex(7)> put("/my_index/users/1", [name: "Jane", email: "jane@example.com"])
    :error

    has anyone tried with nanobox?

    note: it works fine without nanobox containers