Getting a wierd Class Not Found Exception: SolrParams

2011-07-21 Thread Sowmya V.B.
Hi All I have been getting this wierd error since yday evening, whose cause I am not able to figure out. I made a webinterface to read and display Solr Results, which is a servlet that calls Solr Servlet. I am I give the query to Solr, using: MultiMapSolrParams solrparamsmini =

filter query parameter not working as expected

2011-07-21 Thread elisabeth benoit
Hello, There is something I don't quite get with fq parameter. I have this query select?q=VINCI Parkfq=WAY_ANALYZED:de l hotel de ville AND (TOWN_ANALYZED:paris OR DEPARTEMENT_ANALYZED:paris)rows=200fl=*,score and two answers. One having WAY_ANALYZED = 48 r de l'hôtel de ville, which is ok

Re: How can i find a document by a special id?

2011-07-21 Thread Per Newgro
The problem is that i didn't store the mediacode in a field. Because the code is used frequently for getting the customer source. So far i've found the solr.WordDelimiterFilterFactory which is (from Wiki) the way to go. The problem seems to be that i'm searching a longer string then i've

Re: How can i find a document by a special id?

2011-07-21 Thread Per Newgro
Sorry for being that stupid. I've modified the wrong schema. So the solr.WordDelimiterFilterFactory works as expected and solved my problem. I've added the line filter class=solr.WordDelimiterFilterFactory generateWordParts=0 generateNumberParts=1 catenateWords=0 catenateNumbers=0

Java replication takes slaves down

2011-07-21 Thread Alexander Valet | edelight
Hi everybody, we are using Solr 1.4.1 as our search backend and are replicating (Java based) from one master to four slaves. When our index data grew in size (optimized around 4,5 GB) lately we started having huge trouble to spread a new index to the slaves. They run on 100% CPU and are not

previous and next rows of current record

2011-07-21 Thread Jonty Rhods
Hi, Is there any special query in solr to get the previous and next record of current record. I am getting single record detail using id from solr server. I need to get next and previous on detail page. regards Jonty

Re: Java replication takes slaves down

2011-07-21 Thread Andrea Gazzarini
We are using a similar architecture but with two slaves, the index is around 9GB * and we don't have such problem... Each slave is running on a separate machine so we have three nodes in total (1 indexer + 2 searcher)...initially it was everything on a single node and it was working without

Frange Function Query

2011-07-21 Thread Rohit Gupta
Hi, I have the following query in which I am using !frange function twice and the query is not returning any results. However if i use a single !frange function then the results come for the same query. Is it now possible to execute two franges in a single query? q=woolmarkfq={!frange

Re: Schema design/data import

2011-07-21 Thread Stefan Matheis
Hey Travis, after reading your Mail .. and thinking a bit of it, i'm not sure if i would go with Nutch. Nutch is [from my understanding] more a crawler .. meant to crawl external / unknown sites. But, if it got this correct, you have a complete knowledge of your data and could solr exactly

Re: use case: structured DB records with a bunch of related files

2011-07-21 Thread Erick Erickson
I suspect you'll have to use Tika to parse the attachments, and as you do add the info that'll allow you to display the link to the meta-data that Tika generates. I'm in a bit of a rush, but one approach would be to use SolrJ to do your indexing database querying, and you can ask Tika from the

Re: Java replication takes slaves down

2011-07-21 Thread Jonathan Rochkind
How often do you replicate? Could it be a too-frequent-commit problem? (a replication is a commit to the slave). On 7/21/2011 4:39 AM, Alexander Valet | edelight wrote: Hi everybody, we are using Solr 1.4.1 as our search backend and are replicating (Java based) from one master to four

Display term frequency / phrase freqency for documents

2011-07-21 Thread Matthew Haynes
Hi there, I'd like to expose the termFrequency / phraseFrequency to the end user in my application. For example I would like to be able to say Your search term appears X times in this document. I can see these figures exposed via debugQuery=on, where I get output like this ...

Re: Geospatial queries in Solr

2011-07-21 Thread Smiley, David W.
If you are talking about indexed shapes, then there is an attribute on the field type definition in your schema called distErrPct. Reasonable values are between .01 and .20, in my opinion. The default is .025, but try setting it to .01. For points, use the maxDetailKm parameter, which is the

Re: Geospatial queries in Solr

2011-07-21 Thread Jamie Johnson
Thanks for the reply. My setup has a point in the field and a shape as the query. Given this it sounds as if I can get more precise results by changing the distErrPct on a query parameter. I'll give this a whirl. Again thank you. On Thu, Jul 21, 2011 at 11:13 AM, Smiley, David W.

Re: Index Solr Logs

2011-07-21 Thread O. Klein
http://karussell.wordpress.com/2010/10/27/feeding-solr-with-its-own-logs/ http://karussell.wordpress.com/2010/10/27/feeding-solr-with-its-own-logs/ might be useful if you don't want to use Loggly -- View this message in context:

Solr Spell checker PROBLEMS

2011-07-21 Thread magoelem
Hi, I am using Wordnet dictionary for spelling suggestions. i do not get any suggestion,can anyone help, My schema is configured as:schema.xml fieldType name=textSpell

Re: Geospatial queries in Solr

2011-07-21 Thread Jamie Johnson
I think I've missed something. From what I'm seeing it appears that a bounding box is being built from my polygon and any points in that bounding box are returned. This makes sense from the debug which says the query is +(+point__x:[-75.267333984375 TO -74.569702148438]

Re: Geospatial queries in Solr

2011-07-21 Thread Smiley, David W.
Is this happening reproducibly from the demo app? Please try and reproduce it there; if you can't then the problem is somewhere in your setup, I figure. If you can reproduce it in the demo then please send me a direct email with the polygon shape, and your expectation of a particular point

Re: Geospatial queries in Solr

2011-07-21 Thread Jamie Johnson
Yes this is just running the sample. The query is as follows

Re: Updating fields in an existing document

2011-07-21 Thread Benson Margulies
A followup. The wiki has a whole discussion of the 'update' XML message. But solrj has nothing like it. Does that really exist? Is there a reason to use it? If I just 'add' the document a second time, it will replace? On Wed, Jul 20, 2011 at 7:08 PM, Jonathan Rochkind rochk...@jhu.edu wrote:

Re: any detailed tutorials on plugin development?

2011-07-21 Thread Dmitry Kan
one option would be checking out the source code and reading the example request handler implementation, which you could use it as a reference for your own. On Wed, Jul 20, 2011 at 4:59 AM, deniz denizdurmu...@gmail.com wrote: gosh sorry for my typo in msg first... i just realized it now...

Re: previous and next rows of current record

2011-07-21 Thread Jonty Rhods
Pls help.. On Thursday, July 21, 2011, Jonty Rhods jonty.rh...@gmail.com wrote: Hi, Is there any special query in solr to get the previous and next record of current record.I am getting single record detail using id from solr server. I need to get  next and previous on detail page.

Re: random record from solr server

2011-07-21 Thread Jonty Rhods
Thanks.. On Monday, July 18, 2011, Ahmet Arslan iori...@yahoo.com wrote: How can I get random 100 record from last two days record from solr server. I am using solr 3.1 Hello, add this random field definition to you schema.xml fieldType name=random class=solr.RandomSortField indexed=true /

RE: previous and next rows of current record

2011-07-21 Thread Bob Sandiford
Well, it sort of depends on what you mean by the 'previous' and the 'next' record. Do you have some type of sequencing built into your concept of your solr / lucene indexes? Do you have sequential id's? i.e. What's the use case, and what's the data available to support your use case? Bob

Re: commit time and lock

2011-07-21 Thread Jonty Rhods
Actually i m worried about the response time. i k commiting around 500 docs in every 5 minutes. as i know,correct me if i m wrong; at the time of commiting solr server stop responding. my concern is how to minimize the response time so user not need to wait. or any other logic will require for my

Re: previous and next rows of current record

2011-07-21 Thread Jonty Rhods
Hi in my case there is no id sequence. id is generated sequence wise for all category. but when we filter by category then same id become random. If i m on detail page which have id 5 and nrxt id is 9 so on same page my requirment is to get next id is 9. On Thursday, July 21, 2011, Bob Sandiford

RE: previous and next rows of current record

2011-07-21 Thread Bob Sandiford
But - what is it that makes '9' the next id after '5'? why not '6'? Or '91238412'? or '4'? i.e. you still haven't answered the question about what 'next' and 'previous' really means... But - if you already know that '9' is the next page, why not just do another query with id '9' to get the

dih fetching but not adding records to index

2011-07-21 Thread abhayd
hi I m trying to load data into solr index from a xml file using dih my promotions.xml file -- add doc field name=id3/field /doc doc field name=id4/field /doc /add - schema.xml has field

Using Scriptransformer to send a HTTP Request

2011-07-21 Thread sabman
I am using solr to index RSS feeds and I am using DataImportHandler to parse the urls and then index them. Now I have implemented a web service that takes a url and creates an thumbnail image and stores it in a local directory. So here is what I want to do: After the url is parsed, I want to send

Ask again: set queryNorm for boost score to 1?

2011-07-21 Thread Elaine Li
I am asking the question again. Hope someone knows the answer. Basically i just don't want the boosting scoring(generated from the formula) to be normalized. Can I do it without hacking the source code? Elaine On Wed, Jul 20, 2011 at 3:07 PM, Elaine Li elaine.bing...@gmail.com wrote: Hi Folks,

Determine which field term was found?

2011-07-21 Thread Olson, Ron
Hi all- Is there an easy way to find out which field matched a term in an OR query using Solr? I have a document with names in two multi-valued fields and I am searching for Smith, using the query A_NAMES:smith OR B_NAMES:smith. I figure I could loop through both result arrays, but that seems

Re: Determine which field term was found?

2011-07-21 Thread Yonik Seeley
On Thu, Jul 21, 2011 at 4:47 PM, Olson, Ron rol...@lbpc.com wrote: Is there an easy way to find out which field matched a term in an OR query using Solr? I have a document with names in two multi-valued fields and I am searching for Smith, using the query A_NAMES:smith OR B_NAMES:smith. I

Disabling Coord on Solr queries

2011-07-21 Thread Ran Peled
I am looking for the simplest way to disable coord in Solr queries. I have found out Lucene allows this by construction of a BooleanQuery with diableCoord=false: public *BooleanQuery*(boolean disableCoord) Is there any way to activate this functionality directly from a Solr query? Thanks, Ran

RE: Determine which field term was found?

2011-07-21 Thread Olson, Ron
Hmm, okay, well, if that's the way it works, then I'll loop through the arrays, as the query is pretty much as described. Related to what you said about how lucene works, do you think this is functionality something worth opening an enhancement request for, or is it such a tiny corner-case as

Re: previous and next rows of current record

2011-07-21 Thread Jonathan Rochkind
I think maybe I know what you mean. You have a result set generated by a query. You have an item detail page in your web app -- on that item detail page, you want to give next/previous buttons for current search results. If that's it, read on (although news isn't good), if that's not it,

Re: Determine which field term was found?

2011-07-21 Thread Jonathan Rochkind
I've had this problem too, although never come up with a good solution. I've wondered, is there any clever way to use the highlighter to accomplish tasks like this, or is that more trouble than any help it'll get you? Jonathan On 7/21/2011 5:27 PM, Yonik Seeley wrote: On Thu, Jul 21, 2011

Re: fieldCache problem OOM exception

2011-07-21 Thread Santiago Bazerque
Hello Erick, I have a 1.7MM documents, 3.6GB index. I also hava an unusual amount of dynamic fields, that I use for sorting. My FieldCache currently has about 13.000 entries, even though my index only has 1-3 queries per second. Each query sorts by two dynamic fields, and facets on 3-4 fields

Re: XInclude Multiple Elements

2011-07-21 Thread Michael Sokolov
The various XInclude specs were never really fully implemented by XML parsers. IMO it's really best for including whole XML files. If I remember right, the situation is that the xpointer() scheme (the most flexible) wasn't implemented. There are two other schemes for addressing content

What is the different?

2011-07-21 Thread cnyee
Hi, I have two queries: (1) q = (change management) (2) q = (change management) AND domain_ids:(0^1.3 OR 1) The purpose of the (2) is to boost the records with domain_ids=0. In my database all records has domain_ids = 0 or 1, so domains_ids:(0 or 1) will always returns the full database. Now