Re: facet sort by ranking

2008-11-21 Thread Shalin Shekhar Mangar
On Sat, Nov 22, 2008 at 12:31 PM, Amit <[EMAIL PROTECTED]> wrote: > > Is there any way to sort the facet values by other own ranking value > instead > of only count? > > Facets do not have a "score" associated with them of their own. Not sure what you mean exactly. -- Regards, Shalin Shekhar Man

facet sort by ranking

2008-11-21 Thread Amit
Hi All, Is there any way to sort the facet values by other own ranking value instead of only count? Thanks and Regards, Amit No virus found in this outgoing message. Checked by AVG. Version: 7.5.549 / Virus Database: 270.9.9/1804 - Release Date: 21-11-2008 18:24

Re: Newbie Question - getting search results from dataimport request handler

2008-11-21 Thread Noble Paul നോബിള്‍ नोब्ळ्
On Sat, Nov 22, 2008 at 3:10 AM, Chris Hostetter <[EMAIL PROTECTED]> wrote: > > : > it might be worth considering a new @attribute for to indicate > : > that they are going to be used purely as "component" fields (ie: your > : > first-name/last-name example) and then have DIH pass all non-componen

Re: solrQueryParser does not take effect - nightly build

2008-11-21 Thread Koji Sekiguchi
Committed revision 719793. Thank you for reporting this, ashok! Koji Koji Sekiguchi wrote: ashok, Hmm, this is a bug. It was accidentally introduced when SOLR-657 was committed. http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/search/LuceneQParserPlugin.java?p2=%2Fl

Re: Is there a DTD/XSD for XML response?

2008-11-21 Thread Chris Hostetter
: > I assume there is a schema definition or DTD for XML response but could not : > find it anywhere. : > : > Is there one? there was an attempt at one a while back, it got to the point where it was mostly correct, but no one really had any specific ideas of what to do with it (just commiting

Re: solrQueryParser does not take effect - nightly build

2008-11-21 Thread Koji Sekiguchi
ashok, Hmm, this is a bug. It was accidentally introduced when SOLR-657 was committed. http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/search/LuceneQParserPlugin.java?p2=%2Flucene%2Fsolr%2Ftrunk%2Fsrc%2Fjava%2Forg%2Fapache%2Fsolr%2Fsearch%2FLuceneQParserPlugin.java&p1=%

Re: Advice for indexing page numbers

2008-11-21 Thread Chris Hostetter
: Possible ranges are numbers (1 to 1000s) but also could include appendix : page that include roman and alphabet characters (i, ii, iii, iv, as well as : a, b, c, etc). : : It makes sense people would want to search for things between page 1 to 5 : but I cannot really see how someone would search

RE: :TODO: we should try to make a DTD for the schema, DONE as XSD instead

2008-11-21 Thread Chris Hostetter
: There were a few comments about schema files in Mark Mail between you : and Grant a couple of months ago, no big demand for them for the : schema.xml file. Before I drop this would you consider taking a look at : XSD file below for the schema.xml and perhaps submit the XSD file the : SVN system?

Re: New user questions

2008-11-21 Thread Shalin Shekhar Mangar
I guess you may have already gone through the Solr tutorial. Also look at http://wiki.apache.org/solr/UpdateXmlMessages for general description of add/delete commands Look at the DataImportHandler which can help in indexing databases and your custom XML -- http://wiki.apache.org/solr/DataImportHan

New user questions

2008-11-21 Thread phil cryer
I've gotten Solr up and running, I can ingest the demo objects and query them via the admin tool, so far so good. Now, how do I ingest some basic XML, how can I pull from an existing MySQL database, what about pulling records in via OAI? I'm assuming I need to write some schemas for that, can som

RE: Updating schema.xml without deleting index?

2008-11-21 Thread Jeff Lerman
Yep seems this is the case. I found a work-around in case anyone wants to know. I adjusted my query to include a fq of '-myfield:1'. So pretty much, all my data that was in there already would have had a value of '0' for myfield so I can treat either myfield:0 or the absence of myfield as the sa

Re: Updating schema.xml without deleting index?

2008-11-21 Thread Chris Hostetter
: I've tried searching for this answer all over but have found no results : thus far. I am trying to add a new field to my schema.xml with a : default value of 0. I have a ton of data indexed right now and it would : be very hard to retrieve all of the original sources to rebuild my : index. So

Re: Newbie Question - getting search results from dataimport request handler

2008-11-21 Thread Chris Hostetter
: > it might be worth considering a new @attribute for to indicate : > that they are going to be used purely as "component" fields (ie: your : > first-name/last-name example) and then have DIH pass all non-component : > fields along and error if undefined in the schema just like other updating :

Re: Query two fields OR other AND

2008-11-21 Thread Chris Hostetter
: I have problem with two fields. In query I am use q.op=AND but I would like : use in two first fields OR. : Example: : : iTitle:(+keyword 1 +keyword2) OR iDescription:(+keyword 1 : +keyword2)+iUser:"12345"+iType:"1" : : This query not work :( someplaces in your query sting it seems like you a

Re: solr search

2008-11-21 Thread lupiss
Hola! soy nueva en solr y tengo el mismo problema, necesito obtener todos los resultados de cierta consulta y si se puede paginados, de 10 en 10, yo estoy usando jsolr y jsp en una aplicación web, entonces no sabria donde poner la nueva url, con el start = 10 y el rows = 10 o algo así, estoy usan

Re: Pagination with Solr

2008-11-21 Thread Chris Harris
Yo no suelo usar solrj, pero creo que quiere investigar SolrQuery.setStart() y SolrQuery.setRows(). Creo que el primero es para indicar el numero del primero resultado que quere obtener y el segundo es para indicar cuantos resultados quiere obtener. Si quere todos los resultados, probablemente va a

Re: Pagination with Solr

2008-11-21 Thread lupiss
Hola! soy nueva en solr, lo estoy usando para mi proyecto de residencias, el problema que tengo es similar al que dice david, necesito enviar todos los resultados de cierta consulta al cliente, sin embargo siempre puedo obtener solamente 10, los diez primeros, y yo necesito obtener todos, yo estoy

Re: Question about dismax 'mm' - give boost to searches by location

2008-11-21 Thread anuvenk
Since i didn't receive any response, i think i my question wasn't very clear. If the phrase has 4 words (last will and testament florida - and will be removed by stopwordfilter), right now solr matches docs with atleast 3 out of those 4 words. So whats happening is last will and testament from all

Re: Highlighting wildcards

2008-11-21 Thread Mike Klaas
On 21-Nov-08, at 3:45 AM, Mark Miller wrote: To do it now, you'd have to switch the query parser to using the old style wildcard (and/or prefix) query, which is slower on large indexes and has max clause issues. An alternative is to query for q=tele?*, which forces wildcardquery -Mike

Re: Boosting by field contents

2008-11-21 Thread Grant Ingersoll
Have a look at the FunctionQuery stuff: http://wiki.apache.org/solr/FunctionQuery On Nov 20, 2008, at 4:42 PM, Lance Norskog wrote: Is it possible to boost a document by the contents of a field? Given the query: text field:value I want to return all documents with 'text'. Documents where

Re: Upgrade from 1.2 to 1.3 gives 3x slowdown

2008-11-21 Thread Grant Ingersoll
On Nov 20, 2008, at 9:18 AM, Fergus McMenemie wrote: Hello Grant, Were you overwriting the existing index or did you also clean out the Solr data directory, too? In other words, was it a fresh index, or an existing one? And was that also the case for the 22 minute time? No in each case

Re: Unique id

2008-11-21 Thread Aleksander M. Stensby
I still don't understand why you want two different indexes if you want to return the linked information each time anyways... I would say the easiest way is just to index all data (all columns from your views) into the index like this: taskid - taskname - start - end - personid - deptid - ism

Re: Highlighting wildcards

2008-11-21 Thread Mark Miller
To do it now, you'd have to switch the query parser to using the old style wildcard (and/or prefix) query, which is slower on large indexes and has max clause issues. I think I can make it work out of the box for the next release again though. see https://issues.apache.org/jira/browse/SOLR-825

RE: Unique id

2008-11-21 Thread Raghunandan Rao
Can you also let me know how I join two search indices in one query? That means, in this case I have two diff search indices and I need to join by queueId and get all the tasks in one SolrQuery. I am creating queries in Solrj. -Original Message- From: Raghunandan Rao [mailto:[EMAIL PROT

Re: DataImportHanler JDBC case problems

2008-11-21 Thread Noble Paul നോബിള്‍ नोब्ळ्
The column value should be same as it is in the DB and the name value should be same as it is in the schema. BTW, if you are using a latest nightly all this must be fixed. The case does not matter. On Fri, Nov 21, 2008 at 2:13 PM, JCodina <[EMAIL PROTECTED]> wrote: > > I tried to perform a DataIm

RE: Unique id

2008-11-21 Thread Raghunandan Rao
Ok. I got your point. So I need not require ID field in the second view. I will hence remove required="true" in schema.xml. What I thought was unique ID makes indexing easier or used to maintain doc. Thanks a lot. -Original Message- From: Aleksander M. Stensby [mailto:[EMAIL PROTECTED]

Re: Unique id

2008-11-21 Thread Aleksander M. Stensby
Well, In that case, what do you want to search for? If I were you, I would make my index consist of tasks (and I assume that is what you are trying to do). So why don't you just use your schema.xml as you have right now, and do the following: Pick a person (let's say he has person_id=42 a

RE: Unique id

2008-11-21 Thread Raghunandan Rao
Ok. There is common column in two views called queueId. I query second view first and get all the queueids for a person. And having queueIds I get all the ids from first view. Sorry for missing that column earlier. I think it should make sense now. -Original Message- From: Aleksander M.

Highlighting wildcards

2008-11-21 Thread Antonio Zippo
Hi, i'm using solr 1.3.0 and SolrJ for my java application I need to highlight my query words even if I use wildcards for example q=tele* i need to highlight words as "television", "telephone", etc I found this thread http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200704.mbox/[E

Re: Unique id

2008-11-21 Thread Aleksander M. Stensby
And in case that wasn't clear, the reason for it failing then would obviously be because you define the id field with required="true", and you try inserting a document where this field is missing... - Aleks On Fri, 21 Nov 2008 10:46:10 +0100, Aleksander M. Stensby <[EMAIL PROTECTED]> wrote

Re: Unique id

2008-11-21 Thread Aleksander M. Stensby
Ok, this brings me to the question; how are the two view's connected to each other (since you are indexing partly view 1 and partly view 2 into a single index structure? If they are not at all connected I believe you have made a fundamental mistake / misunderstand the use of your index... I

Re: solrQueryParser does not take effect - nightly build

2008-11-21 Thread Aleksander M. Stensby
That sounds a bit strange. Did you do the changes in the schema.xml before starting the server? Because if you change it while it is running, it will by default delete and replace the file (discarding any changes you make). In other words, make sure the server is not running, make your change

RE: Unique id

2008-11-21 Thread Raghunandan Rao
View structure is: 1. Task(id* (int), name (string), start (timestamp), end (timestamp)) 2. Team(person_id (int), deptId (int), isManager (int)) * is primary key In schema.xml I have id -Original Message- From: Aleksander M. Stensby [mailto:[EMAIL PROTECTED] Sent: Friday, Nov

Re: Unique id

2008-11-21 Thread Aleksander M. Stensby
Hello again. I'm getting a bit confused by your questions, and I believe it would be easier for us to help you if you could post the field definitions from your schema.xml and the structure of your two database views. ie. table 1: (id (int), subject (string) -.--) table 2: (category (string)

DataImportHanler JDBC case problems

2008-11-21 Thread JCodina
I tried to perform a DataImportHandler where the column name "user" and the field name "User" are the same but the case of the first letter, when performing a full import, I was getting different sorts of errors, on that field depending on the cases of the names, I tried the four possible combi