Question: Pagination with multi index box

2007-05-14 Thread James liu
if use multi index box, how to pagination with sort by score correctly? for example, i wanna query search with 60 index box and sort by score. i don't know the num found from every index box which have different content. if promise 10 page with sort score correctly, i think solr 's start is 0,

NumberFormat exception when trying to use recip function query

2007-05-14 Thread Mekin Maheshwari
Hi, I am getting the following exception when I try run any query : java.lang.NumberFormatException: empty String at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994) at java.lang.Float.parseFloat(Float.java:394) at

Feature Request: Multiple default search fields

2007-05-14 Thread Jack L
The default search field is really handy. It helps simplify the query, and thus simplify the application using solr. My understand is that solr only allows one default search field. It would be useful to allow multiple default fields, and maybe also specify a global field boost in the schema

Re: Feature Request: Multiple default search fields

2007-05-14 Thread Brian Whitman
On May 14, 2007, at 12:38 PM, Jack L wrote: The default search field is really handy. It helps simplify the query, and thus simplify the application using solr. My understand is that solr only allows one default search field. It would be useful to allow multiple default fields, and maybe also

RE: Requests per second/minute monitor?

2007-05-14 Thread Will Johnson
I've needed similar logged information recently and I looked at the code and had a few questions: Why does SolrCore.setResponseHeaderValues(...) set the QTime (and other response header options) instead of having it as a function of RequestHandlerBase? If things were tracked in the

Re[3]: Multiple fq fields in URL

2007-05-14 Thread Chris Hostetter
: q=samsung+camera : : And if samsung is mandatory, the query will be like this: (or not:) : : q=+samsung+camera : : And the first + will be interpreted as mandatory flag? No. bottom line, forget all about URLs and URL escape. step #1: understand the Lucene query syntax...

Re: Question: Pagination with multi index box

2007-05-14 Thread Mike Klaas
On 14-May-07, at 1:35 AM, James liu wrote: if use multi index box, how to pagination with sort by score correctly? for example, i wanna query search with 60 index box and sort by score. i don't know the num found from every index box which have different content. if promise 10 page with

Re: solr for corpus?

2007-05-14 Thread Huib Verweij
Hi matej, since I didn't see anyone answering your question yet, I'll have a go at it, but I'm not one of the Solr developers, I've just used it so far and am very happy with it. I use it for searching literary texts, storing information from a SQL database in the Solr documents as metadata

RE: solr for corpus?

2007-05-14 Thread Binkley, Peter
Regarding the Lemma and PoS-tag requirement: you might handle this by inserting each word as its own document, with lemma, pos, and word fields, thereby allowing you lots of search flexibility. You could also include ID fields for the item and (if necessary) part (chapter etc.) and use these as

Re: NumberFormat exception when trying to use recip function query

2007-05-14 Thread Chris Hostetter
: The function query field is - : str name=bf : recip(popularityRank, 1, 1000, : 1000)^0.5recip(rord(creationDate),1,1000,1000)^ : 0.3 : /str off the top of my head, i'd suggest you: 1) verify there is some whitespace between the boost of the popularity recip function and the

Re: Null pointer exception

2007-05-14 Thread Chris Hostetter
: I have tried indexing from the exampledocs which is just sitting in my : user home directory but now I get a null pointer exception after : running: just to clarify: are you using solr 1.1 or a nightly build? did you check the log file to ensure thatthere are no exceptions when you start

Re: solr for corpus?

2007-05-14 Thread Chris Hostetter
: 3. Lemma and PoS-tag (Part-of-Speech tag) or generally additional keys : on the word-level, : ie for every word we also have its lemma-value and its PoS. : or in newer systems with xml-attributes: : w pos=Noun lemma=treetrees/w : : Important is, that it has to be possible to mix this various

RE: Null pointer exception

2007-05-14 Thread Gary Browne
Thanks a lot for your reply Chris I am running v1.1.0. If I do a search (from the admin page), it throws the following exception: java.lang.RuntimeException: java.io.IOException: /var/www/html/solr/data/index not a directory There are no exceptions on starting Tomcat, only one warning regarding

RE: Null pointer exception

2007-05-14 Thread Chris Hostetter
: I am running v1.1.0. If I do a search (from the admin page), it throws : the following exception: : : java.lang.RuntimeException: java.io.IOException: : /var/www/html/solr/data/index not a directory does /var/www/html/solr/data/ exist? ... if so does the effective userID for tomcat have

Re: Question: Pagination with multi index box

2007-05-14 Thread James liu
2007/5/15, Mike Klaas [EMAIL PROTECTED]: On 14-May-07, at 1:35 AM, James liu wrote: if use multi index box, how to pagination with sort by score correctly? for example, i wanna query search with 60 index box and sort by score. i don't know the num found from every index box which have

Re: Question: Pagination with multi index box

2007-05-14 Thread James liu
if i set rows=(page-1)*10,,,it will lose more result which fits query. how to set start when pagination. 2007/5/15, James liu [EMAIL PROTECTED]: 2007/5/15, Mike Klaas [EMAIL PROTECTED]: On 14-May-07, at 1:35 AM, James liu wrote: if use multi index box, how to pagination with sort by

RE: Null pointer exception

2007-05-14 Thread Gary Browne
Hi Chris The /var/www/html/solr/data/ directory did exist. I tried opening up permissions completely for testing but no luck (the tomcat user had write permissions). I decided to trash the whole installation and start again. I downloaded last nights build and untarred it. Put the .war into

Re: Question: Pagination with multi index box

2007-05-14 Thread Mike Klaas
On 14-May-07, at 6:49 PM, James liu wrote: 2007/5/15, Mike Klaas [EMAIL PROTECTED]: On 14-May-07, at 1:35 AM, James liu wrote: When you get up to 60 partitions, you should make it a multi stage process. Assuming your partitions are disjoint and evenly distributed, estimate the number of

Re: Question: Pagination with multi index box

2007-05-14 Thread Mike Klaas
On 14-May-07, at 7:15 PM, James liu wrote: if i set rows=(page-1)*10,,,it will lose more result which fits query. how to set start when pagination. I'm not sure I understand the question. When combining results from partitions, you can't use startAt. You must always assemble the docs

Re: Question: Pagination with multi index box

2007-05-14 Thread James liu
thks for your detail answer. but u ignore sorted by score p1, p2,p1,p1,p3,p4,p1,p1 maybe their max score is lower than from p19,p20. so it will not sorted by score correctly. and if user click page 2 to see, how to show data? p1 start from 10 or query other partitions? 2007/5/15, Mike

Documenting function queries [was Re: NumberFormat exception when trying to use recip function query]

2007-05-14 Thread Mekin Maheshwari
2) eliminate the space inside the recip functions This solved it :) I would like to document this along with a little detail about function queries may be if I get enough time, simple graphs that I created to help people choose the right values for using in the function queries. I dont see

Re: Question: Pagination with multi index box

2007-05-14 Thread James liu
for example, i wanna query lucene, it's numFound is 234300. and results should sorted by score. if u do, how to pagination and sort it's score? 2007/5/15, Mike Klaas [EMAIL PROTECTED]: On 14-May-07, at 7:15 PM, James liu wrote: if i set rows=(page-1)*10,,,it will lose more result which

Re: Documenting function queries [was Re: NumberFormat exception when trying to use recip function query]

2007-05-14 Thread Chris Hostetter
: I would like to document this along with a little detail about function : queries may be if I get enough time, simple graphs that I created to help : people choose the right values for using in the function queries. that would be *awesome* : I do see a stub for -

Re: Question: Pagination with multi index box

2007-05-14 Thread James liu
2007/5/15, Mike Klaas [EMAIL PROTECTED]: On 14-May-07, at 8:55 PM, James liu wrote: thks for your detail answer. but u ignore sorted by score p1, p2,p1,p1,p3,p4,p1,p1 maybe their max score is lower than from p19,p20. I'm not ignoring it: I'm implying that the above is the correct

Re: NumberFormat exception when trying to use recip function query

2007-05-14 Thread Mekin Maheshwari
Done. Please check - http://wiki.apache.org/solr/FunctionQuery and send me your comments (or improve the wiki ) Right now its more of a aggregation of all relevant information. I hope people will be able to add notes like what values to use, pitfalls to avoid, behaviour in special cases as