GithubHelp home page GithubHelp logo

Comments (9)

alexklibisz avatar alexklibisz commented on August 26, 2024

Hmm, it seems to work for me. I created an index with 99 vectors and ran these requests:

alex@xps:~/Documents/dev/elastiknn$ curl localhost:9200/issue-174/_count
{"count":99,"_shards":{"total":1,"successful":1,"skipped":0,"failed":0}}alex@xps:~/Documents/dev/elastiknn$ curl localhost:9200/issue-174/_mapping?pretty
{
  "issue-174" : {
    "mappings" : {
      "properties" : {
        "id" : {
          "type" : "keyword",
          "store" : true
        },
        "vec" : {
          "type" : "elastiknn_dense_float_vector",
          "similarity" : "boolean",
          "elastiknn" : {
            "model" : "lsh",
            "similarity" : "l2",
            "dims" : 128,
            "L" : 50,
            "k" : 1,
            "w" : 2
          }
        }
      }
    }
  }
}
alex@xps:~/Documents/dev/elastiknn$ curl localhost:9200/issue-174/_count?pretty
{
  "count" : 99,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  }
}
alex@xps:~/Documents/dev/elastiknn$ curl -X GET "localhost:9200/issue-174/_count?pretty" -H 'Content-Type: application/json' -d'
{
  "query" : {
    "exists" : { 
      "field" : "vec" 
    }
  }
}
'
{
  "count" : 99,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  }
}

from elastiknn.

alexklibisz avatar alexklibisz commented on August 26, 2024

Another hmm, it does seem to fail with the exact mapping.

from elastiknn.

alexklibisz avatar alexklibisz commented on August 26, 2024

@ejackson-eb Can you try again using this build: https://github.com/alexklibisz/elastiknn/releases/download/0.1.0-PRE41-PR175-SNAPSHOT/elastiknn-0.1.0-PRE41-PR175-SNAPSHOT_es7.6.2.zip

from elastiknn.

ejackson-eb avatar ejackson-eb commented on August 26, 2024

Still not working.

from elastiknn.

alexklibisz avatar alexklibisz commented on August 26, 2024

Still not working.

Gotcha. Maybe you're trying it without re-indexing the data first? If so, you'll need to re-index the vectors.
Otherwise, maybe you can provide a small repro, either a python script or bash script with curl commands is usually good.

from elastiknn.

ejackson-eb avatar ejackson-eb commented on August 26, 2024

I didn't realize I would need to reindex. I will try again.

from elastiknn.

alexklibisz avatar alexklibisz commented on August 26, 2024

I didn't realize I would need to reindex. I will try again.

no worries, I didn't mention it :). Here's an explanation for why: https://github.com/alexklibisz/elastiknn/pull/175/files#diff-3bd14d078188074c410028847113ceae68865d0ad5b844a27183ef87fbe2fcc3R1

from elastiknn.

ejackson-eb avatar ejackson-eb commented on August 26, 2024

It works after reindexing, thanks!

from elastiknn.

alexklibisz avatar alexklibisz commented on August 26, 2024

Great. I'll merge and release the fix.

from elastiknn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.