Skip to content

Conversation

@willkg
Copy link
Member

@willkg willkg commented Apr 3, 2012

  • adds a "./manage.py essearch " which spits out results
    to stdout which is easier to compare with other things
  • brings in elasticutils update that changes highlighted to _highlighted
    and adds _score and _type metadata

This has no effect on the search view output for either Elastic Search or Sphinx versions of the search view. It only adds a cli for it.

The cli is kind of handy. It shows rank, score, doc type, and title. Makes it really easy to compare results for the first three pages of a front page search between different scoring systems. We could increase that to a larger number of pages if that's useful or even just keep showing results until some score threshold.

r?

* adds a "./manage.py essearch <query>" which spits out results
  to stdout which is easier to compare with other things
* brings in elasticutils update that changes highlighted to _highlighted
  and adds _score and _type metadata
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think of adding some kind of separator between each page? /nit

@rlr
Copy link
Contributor

rlr commented Apr 4, 2012

This is awesome! r+ with the import styling fix.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, and we keep imports in alphabetical order. Sorry for the OCD :-)

willkg added 2 commits April 5, 2012 10:51
* add empty line between pages
* change order of imports so they're alphabetical
This makes them compliant with the webdev standards.
@willkg
Copy link
Member Author

willkg commented Apr 5, 2012

Fixed the imports. Should be all set now.

@rlr
Copy link
Contributor

rlr commented Apr 5, 2012

:-) r+!

@willkg willkg merged commit e09d736 into mozilla:master Apr 5, 2012
@willkg
Copy link
Member Author

willkg commented Apr 5, 2012

Landed in 76d51a2 .

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

Successfully merging this pull request may close these issues.

2 participants