Giter Club home page Giter Club logo

solrb's People

Contributors

drnluz avatar esergion avatar route avatar syabruk avatar valve avatar vsh91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

solrb's Issues

Use solrb user agent

Currently Solrb sends this UA:

"User-Agent"=>"Faraday v0.15.2"

It should send "Solrb v#{version}" instead

Create an independent commit command

To be able to commit the changes to solr index.

For example:

1 indexing request
2 indexing request
...
10 indexing request
Commit request (to commit once).

Improve 404 error

Today I was using this gem and it returned 404 error for all my requests. I didn't know why.
Only when I opened the raw_response, I saw that it has this body:

   <html>\n

<head>\n
  <meta http-equiv=\ "Content-Type\" content=\ "text/html;charset=utf-8\"/>\n
  <title>Error 404 Not Found</title>\n
</head>\n

<body>
  <h2>HTTP ERROR 404</h2>\n
  <p>Problem accessing /solr/parts/parts/select. Reason:\n
    <pre>    Not Found</pre>
  </p>\n
</body>\n

</html>

We should be able to see exact 404 message, in this case: "

Problem accessing /solr/parts/parts/select. Reason:\n

    Not Found
"

Let's not work on it, if it's complex to do w/out an HTML parser

Support multiple cores in configuration

Currently it's only possible to define a single core in configuration:

Solr.configure do |config|
   config.define_core(name: :listings_en) do |f|
     ...
   end
end

However there can be situations when it's necessary to define multiple cores at once, i.e. several cores with identical configurations.

Example:

Solr.configure do |config|
   config.define_cores(names: %w[listings_en listings_pt listings_es] ) do |f|
     ...
   end
end

This configuration type should allow to query different cores and all these core configurations should efficiently reuse the configuration values. That is, there should be only one set of fields in memory, but they should be linked to multiple core names.

@setem @drnluz

UnspecifiedCoreConfig naming may be incorrect

[3] pry(Solr::Support::UrlHelper)> Solr.current_core_config
=> #<Solr::CoreConfiguration::UnspecifiedCoreConfig:0x00007fcedb45a400 @default=false, @fields={}, @name=nil>

This happens when I use a URL to configure Solrb. In that case it says "Unspecified Core Config".

This naming is incorrect I think. It's not possible to work with solr w/out specifying a core. I did specify the core through the URL, so shouldn't say "unspecified".

Error when indexing latlng data type

Error: 400 (Bad Request)
ERROR: [doc=6389] Error adding field 'coordinates_ll'='-120.843769,50.7527649' msg=Unable to parse shape given formats "lat,lon", "x y" or as WKT because java.text.ParseException: Unknown Shape definition [-120.843769,50.7527649] (400)

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.