RE: Solr under tomcat - UTF-8 issue

2009-10-25 Thread markwaddle
I was originally using POST for the same reason, however I discovered that Tomcat could easily be configured to accept any length URI. All it requires is specifying the maxHttpHeaderSize attribute in your default Connector in server.xml. I set my value to 1MB, which is certainly excessive, but it

Re: Shards param accepts spaces between commas?

2009-10-25 Thread Noble Paul നോബിള്‍ नोब्ळ्
On Sun, Oct 25, 2009 at 9:34 PM, Chris Hostetter wrote: > > : It seems like no, and should be an easy change.  I'm putting newlines > : after the commas so the large shards list doesn't scroll off the > : screen. > > Yeah ... for some odd reason QueryComponnent is using > StrUtils.splitSmart() ...

weird behaviour while inserting records into solr

2009-10-25 Thread Rakhi Khatwani
Hi, i was trying to insert one million records in solr (keeping the id from 0 to 100). things were fine till it inserted (id = 523932). after that it started inserting it from 1 (i.e updating). i am not able to understand this behaviour. any pointers?? Regards, Raakhi

"begins with" searches

2009-10-25 Thread Bernadette Houghton
We need to offer "begins with" type searches, e.g. a search for "surname, f" will retrieve "surname, firstname", "surname, f", "surname fm" etc. Ideally, the user would be able to enter something like "surname f*". However, wildcards don't work on phrase searches, nor do range searches. Any sug

Re: Dismax params, mm < explanation

2009-10-25 Thread ram_sj
After reading the explanation in the book, its very clear now. Thank you citing it with page number, Ram hossman wrote: > > > What you are looking at is an XML escaped version of this string... > > 2<-1 3<-2 6<100% > > ...the syntax is documented here... > > http://wiki.apache.org/s

Re: field collapsing bug (java.lang.ArrayIndexOutOfBoundsException)

2009-10-25 Thread Martijn v Groningen
I was able to reproduce the exact same stacktrace you have sent. The exception occured when I removed a document from a newly created index (with a commit) and then did a search with field collapsing enabled. I have attached a new patch to SOLR-236 that includes a fix for this bug. Martijn 2009/1

Re: Dismax params, mm < explanation

2009-10-25 Thread Chris Hostetter
What you are looking at is an XML escaped version of this string... 2<-1 3<-2 6<100% ...the syntax is documented here... http://wiki.apache.org/solr/DisMaxRequestHandler#mm_.28Minimum_.27Should.27_Match.29 http://lucene.apache.org/solr/api/org/apache/solr/util/doc-files/min-should-match

Re: Constant Score Queries and Function Queries

2009-10-25 Thread Chris Hostetter
: Fair enough, I guess I was just kind of expecting a constant score query + a : function query to result in a score of whatever the function query is. This : is a common trick to sort by a function, but it's easy enough to just ^0 the : non function clause. I think the root of hte issue is that

Re: Searching over all Dynamic Fields: different things tested, multiple issues experienced

2009-10-25 Thread Chris Hostetter
: When I test it, if I test it with "stored=true", it works as expected, if I : test with with "stored=false" the resultset is empty. Adding stored="false" has no impact on anything related to searchings -- it only affects what values can be written out by the response writer. There's no way on

Re: question about merging indexes

2009-10-25 Thread Chris Hostetter
: I need some help about the mergeindex command. I have 2 cores A and B : that I want to merge into a new index RES. A has 100 docs and B 10 : docs. All of B's docs are from A, except that one attribute is : changed. The goal is to bring the updated attributes from B into A. that's not how mergei

Dismax params, mm < explanation

2009-10-25 Thread ram_sj
Hi, consider this minimum match params in dismax query handler, 2<-1 3<-2 6<100% I requested solr to match atleast two fields, which i understood from the documents. Can someone give me explanations for other params in it? "lt;-1 3" "lt;-2 6" "lt;100%" how are they si

Re: Solrj Javabin and JSON

2009-10-25 Thread Patrick Jungermann
Hi Stefan, you don't need to convert the Java objects built from the result returned as Javabin. Instead of this, you could easily use the JSON return format by setting "wt=json". See also at [0] for more information about this. Patrick [0] http://wiki.apache.org/solr/SolJSON SGE0 schrieb: >

Re: Specify increment gap with PatternTokenizerFactory

2009-10-25 Thread Chris Hostetter
: Is there a way to specify an increment gap between tokens with the : PatternTokenizerFactory or do I need to customise it? For instance if I : split on commas in "*Books, Online Shopping, Book Store*" I want to be able : to put a 100 position gap between say "books" and "online shopping". Term

Re: Solr and bitwise comparaison

2009-10-25 Thread Chris Hostetter
: I search to make a request in solr similaire are "SELECT COUNT(*) FROM : InscriptionNew WHERE choices & 17 > 0;" into mysql. : it is possible, you have an idea ? bitmask operations in DB queries like that are usually a result of using a single physical column to store many logical boolean colu

Re: Shards param accepts spaces between commas?

2009-10-25 Thread Chris Hostetter
: It seems like no, and should be an easy change. I'm putting newlines : after the commas so the large shards list doesn't scroll off the : screen. Yeah ... for some odd reason QueryComponnent is using StrUtils.splitSmart() ... SolrPluginUtils.split() seems like a saner choice. A better quest

Re: MoreLikeThis support Dismax parameters

2009-10-25 Thread Chris Hostetter
In the current code base the MLT Handler has geneerally been superceeded by a MLT Component which may do what you want -- you can use an QParser you want to generate a DocList and the MLT Component then suggests similar docs for each doc in your list. As i said: that may be what you're looking

Re: Store tika extracted result as xhtml

2009-10-25 Thread Chris Hostetter
: My objective is to be able to stored it as xhtml in the field and be : able to retrieve it as cached output. Since tika is already giving xhtml : output, I wonder why when Solr save it as a plain text. (Maybe I missed : out something in the configuration??) I'm not very familiar with Tika or

Re: Which query parser handles nested queries?

2009-10-25 Thread Chris Hostetter
: http://www.lucidimagination.com/blog/2009/03/31/nested-queries-in-solr/). : When working with Solr 1.3 stable, I'm able to use this syntax : effectively using the default requestHandler, but when I am : hand-rolling my own requestHandler, it doesn't recognize the _query_ the magic field _query_

Re: field collapsing bug (java.lang.ArrayIndexOutOfBoundsException)

2009-10-25 Thread Martijn v Groningen
Hi Joe, Can you give a bit more context info? Like the exact search and the field types you are using for example. Also are you doing a lot of frequent updates to the index? Cheers, Martijn 2009/10/23 Joe Calderon : > seems to happen when sort on anything besides strictly score, even > score de