SolrQuery.getStart(), SolrQuery.getRows(), always return null

2008-03-10 Thread Thijs
I'm running into a problem where the calls to SolrQuery.getStart(), SolrQuery.getRows() always return null I'm using trunk of 1.3 I think I also found the problem. If I use SolrQuery.setRows(20), the value is set in the LinkedHashMap with the key-values {"rows", {"20"}} in method set() (line 66

Re: Fwd: Favouring recent matches

2008-03-10 Thread Mathieu Lecarme
1) document boost is periodicaly recomputed with age as a factor (or log(age)). It should be slow. 2) Use your own Similarity implementation. Use the DefaultSimilarity with a dynamic document boost. The Map document id -> age or document id -> date should be cached with Map, ehCache, whirlcache,

Re: Composite key for uniqueKeyId

2008-03-10 Thread Norberto Meijome
On Fri, 7 Mar 2008 17:59:48 -0800 (PST) Chris Hostetter <[EMAIL PROTECTED]> wrote: > I believe Norberto ment he was handling it in his update client code -- > before sending the docs to Solr. Indeed, this what we do. We have a process that parses certain files, generates documents following the

return only sorted Field, but with a different Field Name

2008-03-10 Thread George Abraham
Hi all, Sorry if this is a easy one, but apparently my research isn't working for now. Here is what I want to do. Currently I index the contents of my database using Solr. After a search result is retrieved from Solr, I extract only the key fields that I need (mostly the unique ID and score) and t

Re: SolrQuery.getStart(), SolrQuery.getRows(), always return null

2008-03-10 Thread Thijs
I just realise that the code below is a dirty hack :) but it does solve the problem for me because in my case String param is always null. I haven't been able to figure out what the purpose of fpname() is because it seems that where it's used it is alwayse used to get values from SolrParams ne

Solr-ruby response structure inconsistent

2008-03-10 Thread Matt M.
Hi, I've just noticed while switching connections between two different solr instances (different servers) that their facet response structures are not the same. But the Solr version is identical; 1.2. I've pasted in the significant part of the response. Note the facet_fields in the first is a Has

Re: Solr-ruby response structure inconsistent

2008-03-10 Thread Matt M.
Just wanted to mention... the solr-ruby package has nothing to do with this. These are responses straight out of the solr/select handler. Matt On Mon, Mar 10, 2008 at 12:07 PM, Matt M. <[EMAIL PROTECTED]> wrote: > Hi, > > I've just noticed while switching connections between two different solr >

Python Client / Parameters with a dot

2008-03-10 Thread Eric Falconnier
Hello, I am beginning to use the python client from the subversion repository. Everything works well except if I want to pass a parameter with a dot to the search method of the SolrConnection class (for example facet.field). The solution I have is to replace the "." by "__dot__" ( facet__dot__fiel

Re: Python Client / Parameters with a dot

2008-03-10 Thread Christian Vogler
On Monday 10 March 2008 19:34:09 Eric Falconnier wrote: > I am beginning to use the python client from the subversion > repository. Everything works well except if I want to pass a parameter > with a dot to the search method of the SolrConnection class (for > example facet.field). The solution I ha

How to get incrementPositionGap value from IndexSchema ?

2008-03-10 Thread Renaud Delbru
Hi, I am looking for a way to access the incrementPositionGap value defined for a field type in the schema.xml. There is a getArgs method in FieldType class, but it is protected and I am not able to access it. Is there another solution ? Regards. -- Renaud Delbru, E.C.S., Ph.D. Student, Sema

Re: Solr-ruby response structure inconsistent

2008-03-10 Thread Matt M.
I (and Erik) solved my problem! It was from a setting in the solrconfig.xmlfile. Under the settings for the standard request. I ended up copying the schema from the acts_as_solr library, and didn't notice this one little change: map That tells Solr to return the json result (or Ruby or Python) in

Re: How to search multiphrase or a middle term in a word???

2008-03-10 Thread Chris Hostetter
: As i explored i didnt correctly understood the behaviour of NGrim : Tokenizer. : I want to know the usage and the configuration in code using NGrim : Tokenizer. : Please help me out. The min and max options are really all the configuration there is -- for your purpose they should be the

Re: ranged queries concerning 2 fields, each are multivalued

2008-03-10 Thread Chris Hostetter
here is no way out of the box to achieve what you are asking for with the schema as you have it setup. possible ways of implementing something like this have been discussed on the mailing list in the past, but it would require some extensive java coding. one key option to consider is to rethi

Re: Solr-ruby response structure inconsistent

2008-03-10 Thread Yonik Seeley
On Mon, Mar 10, 2008 at 4:42 PM, Matt M. <[EMAIL PROTECTED]> wrote: > The sort order doesn't seem to work correctly when using the "map" (hash) > type. That's why it's not the default... I didn't want to put the burden of re-sorting on the client. -Yonik

Re: Solr-ruby response structure inconsistent

2008-03-10 Thread Erik Hatcher
And the solr-ruby library handles this in the standard/dismax responses in this manner: def field_facets(field) facets = [] values = @data['facet_counts']['facet_fields'][field] Solr::Util.paired_array_each(values) do |key, value| facets << FacetValue.new(key, value) end

Re: Highlighting Default Fields

2008-03-10 Thread Chris Hostetter
: However, I am doing a DisMax query and when I debug it shows that it is : falling back on the default field in the schema, not the qf fields. Looking : at the code in SolrHighlighter confirms this. Is it a bug or should I change : the wiki (or both)? it is suppose to work that way. In 1.2 yo

Re: How to override special meaning of +

2008-03-10 Thread Chris Hostetter
: : a) hot+cold : b) hot++cold : c) hotcold : d) hot cold : e) cold water : f) hot water : : I want to search only for hot+cold. I tried with "hot\+cold" and also : hot\+cold. I got *first four* contents. : How to search only exact match? there are two issues to keep i mind here: one is the anal

Re: Solr-J problem

2008-03-10 Thread oleg_gnatovskiy
Ah, so that is what that setRows method does. Would there be a problem with setting it to Integer.MAX_VALUE since I don't know how many results I will have in advance? Otis Gospodnetic wrote: > > I don't have the sources in front of me, but isn't there a setRows(int) > method that you can cal

Re: Solr-J problem

2008-03-10 Thread Erik Hatcher
Problem? Not necessarily, but you risk a major performance hit in generating the response as well as in parsing the response by the solrj client side too. Rather, do a query, get a reasonable subset of the docs back, look at the response to see how many total documents there are and page

Re: Solr-J problem

2008-03-10 Thread Erik Hatcher
I meant setting the start parameter up by one page full (say 10, 25, or 100+) at a time. Leave rows at that page size, of course. Erik On Mar 10, 2008, at 9:28 PM, Erik Hatcher wrote: Problem? Not necessarily, but you risk a major performance hit in generating the response as well

Result based sorting for KWIC?

2008-03-10 Thread Christian Wittern
Hi there, I am investigating using solr for a project that requires presentation of search results in a KWIC display, sorted according to either the string following the matches or the (reverse) of the characters previous to the matches. Can this be done with Solr? How would I go about implement

Accented search

2008-03-10 Thread climbingrose
Hi guys, I'm running to some problems with accented (UTF-8) language. I'd love to hear some ideas about how to use Solr with those languages. Basically, I want to achieve what Google did with UTF-8 language. My requirements including: 1) Accent insensitive search and proper highlighting: For ex