PhoneticFilterFactory related questions

2009-08-07 Thread Reuben Firmin
Hi, I have a schema with three (relevant to this question) fields: title, author, book_content. I found that if PhoneticFilterFactory is used as a filter on book_content, it was bringing back all kinds of unrelated results, so I have it applied only against title and author. Questions -- 1) I ha

Re: Attempt to query for max id failing with exception

2009-08-07 Thread Reuben Firmin
rver tried to get at it. Reuben On Fri, Aug 7, 2009 at 12:03 PM, Yonik Seeley wrote: > I just tried this sample code... it worked fine for me on trunk. > > -Yonik > http://www.lucidimagination.com > > On Thu, Aug 6, 2009 at 8:28 PM, Reuben Firmin wrote: > > I'm using

Attempt to query for max id failing with exception

2009-08-06 Thread Reuben Firmin
I'm using SolrJ. When I attempt to set up a query to retrieve the maximum id in the index, I'm getting an exception. My setup code is: final SolrQuery params = new SolrQuery(); params.addSortField("id", ORDER.desc); params.setRows(1); params.setQuery(queryString); fi

deleteById always returning OK

2009-07-29 Thread Reuben Firmin
Is it expected behaviour that "deleteById" will always return OK as a status, regardless of whether the id was matched? I have a unit test: // set up the test data engine.index(12345, s1, d1); engine.index(54321, s2, d2); engine.index(23453, s3, d3); // ... @Test public void t

Guide to using SolrQuery object

2009-07-14 Thread Reuben Firmin
Hi, It seems that SolrQuery is a better API than the basic ModifiableSolrParams, but I can't make it work. Constructing params with: final ModifiableSolrParams params = new ModifiableSolrParams(); params.set("q", queryString); ...results in a successful search. Constructing SolrQuery with:

Re: Trying to run embedded server from unit test...but getting configuration error

2009-07-13 Thread Reuben Firmin
at specifies the cores, eg like the one you can find in > example/multicore/solr.xml > > http://svn.apache.org/repos/asf/lucene/solr/trunk/example/multicore/solr.xml > > Looks like that error is not finding the root solr node, so likely your > trying to use a regular solrconfig.x

Trying to run embedded server from unit test...but getting configuration error

2009-07-13 Thread Reuben Firmin
Hi, I'm setting up an embedded solr server from a unit test (the non-bolded lines are just moving test resources to a tmp directory which is acting as solor.home.) final File dir = FileUtils.createTmpSubdir(); *System.setProperty("solr.solr.home", dir.getAbsolutePath());*