Git Product home page Git Product logo

Comments (7)

kidpollo avatar kidpollo commented on September 26, 2024

It seems there are other people also having problems with pagination. Thanks for the info it gives me a better ide on where the bug is I just hope I get the time soon to work on this. If you feel like taking a dive it would be greatly appreciated

from tanker.

kidpollo avatar kidpollo commented on September 26, 2024

I just merged some changes from a pull request done by @adrnai which do some changes to the instatiation logic can you please test your code by using the code from master

gem 'tanker', :git => 'git://github.com/kidpollo/tanker.git'

from tanker.

kidpollo avatar kidpollo commented on September 26, 2024

Hi

I double checked this. I added a test to my integration suite to verify, all seems working.

It does feel very weird. My test is pretty basic may be there is something else going on. If you execute the raw query tanker generates what do you get back.

my test looks like this

describe 'An imaginary store' do
before(:all) do
Tanker::Utilities.clear_index('tanker_integration_tests')
100.times do ; Product.create(:name => 'crapoola', :href => "crappy", :tags => ['crappy']) ; end
Product.tanker_reindex
end

describe 'pagination' do
it 'should dilplay total results correctly' do
results = Product.search_tank('crapoola')
results.total_entries.should == 100
end
end
end

Try debugging the library

look for line in tanker.rb and throw a debugger in there

results = index.search(query, options)

from tanker.

kidpollo avatar kidpollo commented on September 26, 2024

BTW I released a new version of the gem with minor changes to pagination. I dont expect this could fix the issue but you might want to upgrade anyway.

from tanker.

marcusg avatar marcusg commented on September 26, 2024

@kidpollo, thanks! i will try and say if i got it running...

from tanker.

marcusg avatar marcusg commented on September 26, 2024

@kidpollo, I cleared all indexes and created new ones but the problem still exists. I'll try to find a solution, i hope i'm able to do it because you gem is awesome, i don't want to miss it :)

from tanker.

marcusg avatar marcusg commented on September 26, 2024

i tried it again and it seems to work! (some minutes ago i had a problem with per_page option) but with a clean project it's working very nice! thank you @kidpollo and @adrnai :)

from tanker.

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.