Sunspot 0.10.6 out!

13 views
Skip to first unread message

Mat Brown

unread,
Nov 5, 2009, 6:18:55 PM11/5/09
to ruby-s...@googlegroups.com
Hi all,

Just a heads up that Sunspot 0.10.6 is out. This is a patch level
release, but has more new goodies than average. I'll try and put
together a blog post on it tomorrow, but here's the changelog:

* Support more dismax parameters
* Support multiple boost queries
* Allow "extra" facet rows
* Allow exclusion of fulltext fields
* Allow specification of per-field highlighting params
* Specify coordinates using block extraction
* Return empty array if no highlights available
* Get stored text fields from hits
* Update docs to reflect a requirement of at least one search type
* added --max-memory and --min-memory parameters to sunspot-solr
* LocalLucene and LocalSolr compatible with Java 1.5


Hoping to get a new Sunspot::Rails release out this week too - lots of
great patches from great contributors are waiting to be released into
the wild! Stay tuned.

Mat

Tom Cocca

unread,
Nov 10, 2009, 3:10:34 PM11/10/09
to Sunspot
Hi Mat,

thanks for the updates.

I just installed 0.10.6 and unpacked it into my app, deleted 0.10.5
and updated my config.gem.

However when I go to run rake sunspot:solr:start I get the following:

tom@tom-ubuntu:~/rails/rentals$ rake sunspot:solr:run
(in /home/tom/rails/rentals)
ERROR: invalid option: -p

Usage: sunspot-solr <command> <options> -- <application options>

* where <command> is one of:
start start an instance of the application
stop stop all instances of the application
restart stop all instances and restart them afterwards
run start the application and stay on top
zap set the application to a stopped state

* and where <options> may contain several of the following:

-t, --ontop Stay on top (does not daemonize)
-f, --force Force operation
Common options:
-h, --help Show this message
--version Show version

However, if I run the following:

tom@tom-ubuntu:~/rails/rental$ sunspot-solr --help
Usage: sunspot-solr start [options]
-p, --port=PORT Port on which to run Solr
(default 8983)
-d, --data-directory=DIRECTORY Solr data directory
-s, --solr-home=HOME Solr home directory (should
contain conf/ directory)
--pid-dir=PID_DIR Directory for pid files
-l, --log-level=LOG_LEVEL Solr logging level
--log-file=LOG_FILE Path to Solr log file
--max-memory=MEMORY Specify the maximum size of the
memory allocation pool
--min-memory=MEMORY Specify the initial size of the
memory allocation pool

Which makes me think the port is there....


However: tom@tom-ubuntu:~/rails/rentals$ which sunspot-solr
/usr/bin/sunspot-solr

Do I need to delete the old sunspot-0.10.5 gem off my system?

Thanks,
~ Tom

Mat Brown

unread,
Nov 10, 2009, 3:14:16 PM11/10/09
to ruby-s...@googlegroups.com
Hey Tom,

The 0.10 release slightly changed the way sunspot-solr receives
options - in particular, there's no longer a -- before the flags.
You're probably getting that error from an older version of
Sunspot::Rails that uses the 0.9 sunspot-solr option syntax - try
upgrading sunspot_rails to the latest version and you should be set.

Mat

Tom Cocca

unread,
Nov 10, 2009, 3:20:17 PM11/10/09
to ruby-s...@googlegroups.com
I just completely removed all my sunspot and sunspot_rails gems and updated to the latest in everything  sunpot-0.10.6 sunspot_rails-0.11.2 and I am still getting the same error.

Any other thoughts?

Thanks,
~ Tom

P.S. I am very thankful for how quickly you respond to support questions for these libraries.  Really appreciate it.

Mat Brown

unread,
Nov 10, 2009, 3:23:11 PM11/10/09
to ruby-s...@googlegroups.com
Tom,

Shot in the dark, but do you have any old versions of
outoftime-sunspot_rails lurking about? Namespaced gems turned out to
be a big lose...

Mat

Tom Cocca

unread,
Nov 10, 2009, 4:04:44 PM11/10/09
to ruby-s...@googlegroups.com
Bingo!

had outoftime-sunpot-0.9.8 and outoftime-sunspot_rails-0.10.5 installed.  Wonder why they were screwing it up before when I was using sunpot-0.10.5 and sunpot_rails-0.10.9

Oh well, its working now.

Thanks again,
~ Tom
Reply all
Reply to author
Forward
0 new messages