Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Searching not working entirely... #67

Open
Znow opened this issue Jul 5, 2016 · 6 comments
Open

Searching not working entirely... #67

Znow opened this issue Jul 5, 2016 · 6 comments

Comments

@Znow
Copy link

Znow commented Jul 5, 2016

Hi

I'm using this gem on an existing Refinery project. The project has a loads of custom engines, pretty standard stuff.

The "Point" engine has a "project_external_id" field.

# encoding: UTF-8

module Refinery
  module Wayfinders
    class Point < Refinery::Core::BaseModel
      acts_as_indexed :fields => [:number, :project_external_id]
    end
  end
end

In my local db, I have at least 10 records, with project_external_id set to "760".

But, when I try search for "760", I get no search results.

Then I try to search for ex. "714", which is another project_external_id, and then I get 1 result for "714", and the actually all the results for "760"

image

If I clear out the search, I can see all the records belonging to "714" just fine.

image

This doesn't make any sense.

On another version of the same app, running an earlier version of Refinery and therefore using refinery-search 2.1.0, then the search for "760" works just fine:

image

What is happening?

Kind regards

@bricesanchez
Copy link
Member

bricesanchez commented Jul 5, 2016

Hi @Znow,

Did you reindex your records after adding :project_external_id?

https://github.com/refinery/refinerycms-search#index-records

@Znow
Copy link
Author

Znow commented Jul 5, 2016

@bricesanchez - Yes ofc :-) Project_external_id has always been there.

@bricesanchez
Copy link
Member

Could you copy/paste your Gemfile.lock ?

@Znow
Copy link
Author

Znow commented Jul 5, 2016

@bricesanchez I've pasted it in a Gist, it's pretty long :p

https://gist.github.com/Znow/cce864cd6f1b080057b44e3dd486aac6

@bricesanchez
Copy link
Member

I don't know what happens, sorry.

@Znow
Copy link
Author

Znow commented Jul 6, 2016

Well, there must be a way to further investigate this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants