Phrase Query Issue

2009-04-03 Thread dabboo
Hi, I am implementing phrase search query using my application. I am trying to search "Glorious Revolution", I am expecting all the records which contains this as whole string in any of its field should display. Below is my query: ?q=fieldname:"Glorious Revolution"&qt=dismaxrequest I am passin

filter query question

2009-04-03 Thread Ashish P
Consider, I have following 3 fields I want to query all documents where name:somevalue and actionuser value is not equal to creationuser value. Can we do this??? -- View this message in context: http://www.nabble.com/filter-query-question-tp22863789p22863789.html Sent from the Solr - User m

Re: Additive filter queries

2009-04-03 Thread Fergus McMenemie
>I have a design question for all of those who might be willing to provide an >answer. > >We are looking for a way to do a type of additive filters. Our documents >are comprised of a single item of a specified color. We will use shoes as >an example. Each document contains a multivalued ³size² f

Re: filter query question

2009-04-03 Thread Shalin Shekhar Mangar
On Fri, Apr 3, 2009 at 1:32 PM, Ashish P wrote: > > I want to query all documents where name:somevalue and actionuser value is > not equal to creationuser value. > > Can we do this??? Nope. But you can create a new field which holds true if actionuser != creationuser and filter on that. -- Re

Re: Phrase Query Issue

2009-04-03 Thread Shalin Shekhar Mangar
On Fri, Apr 3, 2009 at 1:11 PM, dabboo wrote: > > I am passing this to my solr search engine using httpclient. But it is > thrwoing me Invaild Query exception. > I suggest that you use the Solrj client. It will save a you a lot of effort. http://wiki.apache.org/solr/Solrj -- Regards, Shalin S

Re: filter query question

2009-04-03 Thread Ashish P
Thanks Shalin. Another question what is the meaning of this syntax [* TO *] Thanks, Ashish Shalin Shekhar Mangar wrote: > > On Fri, Apr 3, 2009 at 1:32 PM, Ashish P wrote: > >> >> I want to query all documents where name:somevalue and actionuser value >> is >> not equal to creationuser valu

Re: filter query question

2009-04-03 Thread Shalin Shekhar Mangar
On Fri, Apr 3, 2009 at 2:04 PM, Ashish P wrote: > > Another question what is the meaning of this syntax > [* TO *] > > It means match all tokens from the beginning to the end. -- Regards, Shalin Shekhar Mangar.

Re: Oracle Clob column with DIH does not turn to String

2009-04-03 Thread ashokc
Noble, I put in a few 'System.out.println' statements in the ClobTransformer.java file & remade the war. But I see none of these prints coming up in my 'catalina.out' file. Is that the right file to be looking at? As an aside, is 'catalina.out' the ONLY log file for SOLR? I turned on the logging

RE: Remote Access To Schema Data

2009-04-03 Thread Fink, Clayton R.
Thanks, Jeff. Luke will work , but it's a GUI - unless they expose an API that I can call. What I need is a way to get the informatiom as a client call to a SolrJ SolrServer object. We want to be able to get this info whether we are running Solr embedded or as a Web service. I guess I could wri

Re: Remote Access To Schema Data

2009-04-03 Thread Shalin Shekhar Mangar
On Fri, Apr 3, 2009 at 6:11 PM, Fink, Clayton R. wrote: > Thanks, Jeff. > > Luke will work , but it's a GUI - unless they expose an API that I can > call. What I need is a way to get the informatiom as a client call to a > SolrJ SolrServer object. We want to be able to get this info whether we are

Re: Phrase Query Issue

2009-04-03 Thread Nicolas
Maybe you can have to escape quotes with the % folowed by the exa code of the quote like is done by the php urlencode fonction. "Returns a string in which all non-alphanumeric characters except /-_./ have been replaced with a percent (/%/) sign followed by two hex digits and spaces encoded as

Re: Facets drill down

2009-04-03 Thread Erik Hatcher
On Apr 2, 2009, at 3:07 PM, revas wrote: Hi, I typically issue a facetdrill down query thus q=somequery and Facetfield:facetval . Is there any issues with the above approach as opposed to &fq=facetfield:value in terms of memory consumption and the use of cache. Yes... using fq allows tho

Re: Phrase Query Issue

2009-04-03 Thread Erik Hatcher
Also note that the dismax parser does NOT support fielded clauses, so fieldname:"some phrase" is not parsed as you might expect with dismax. Erik On Apr 3, 2009, at 3:41 AM, dabboo wrote: Hi, I am implementing phrase search query using my application. I am trying to search "Glori

Re: Remote Access To Schema Data

2009-04-03 Thread Erik Hatcher
On Apr 3, 2009, at 9:26 AM, Shalin Shekhar Mangar wrote: Note that the luke handler gives out a lot of information like term frequency and therefore takes a longer time to execute. It's fast if you say &numTerms=0 though, which is good enough to get field/type info. Erik

Re: Remote Access To Schema Data

2009-04-03 Thread Shalin Shekhar Mangar
On 4/3/09, Erik Hatcher wrote: > > On Apr 3, 2009, at 9:26 AM, Shalin Shekhar Mangar wrote: >> Note that the luke handler gives out a lot of information like term >> frequency and therefore takes a longer time to execute. > > It's fast if you say &numTerms=0 though, which is good enough to get > f

Re: crazy parentheses

2009-04-03 Thread Shalin Shekhar Mangar
On Fri, Apr 3, 2009 at 9:56 AM, Dean Missikowski (Consultant), CLSA < dean.missikow...@clsa.com> wrote: > I've got a problem that's driving me crazy with parentheses. > > I'm using a recent nightly Solr 1.4 > > My index includes these three docs. > > doc #1 has title: "saints & sinners" > > doc #2

Re: DIH Date conversion from a source column skews time

2009-04-03 Thread Wesley Small
Okay, I will give that a try. I could resolve this any other day by being able to execute the same XPATH retrieval twice. Why does the following not work: When I do this, only the second_date_s will make it into the index. I know first_date_d instruction is valid but, it just disappears. An

Re: Additive filter queries

2009-04-03 Thread Matthew Runo
We could do that by going down one level in our inventory, but then we have other problems.. for example: Right now a document looks like this: 1598548 12545 Adidas 1, 2, 3, 4, 5, 6, 7 AA, A, B, W, W, Brown If we went down a level, it could look like.. 1598548 12545 654641654684 Adi

Re: DIH Date conversion from a source column skews time

2009-04-03 Thread Noble Paul നോബിള്‍ नोब्ळ्
I same XPATH does not work . but what is stopping you from copying one field to another using a Template On Fri, Apr 3, 2009 at 8:39 PM, Wesley Small wrote: > Okay, I will give that a try. > > I could resolve this any other day by being able to execute the same XPATH > retrieval twice.  Why

Re: Oracle Clob column with DIH does not turn to String

2009-04-03 Thread Noble Paul നോബിള്‍ नोब्ळ्
There is something else wrong with your setup. can you just paste the whole data-config.xml --Noble On Fri, Apr 3, 2009 at 5:39 PM, ashokc wrote: > > Noble, > I put in a few 'System.out.println' statements in the ClobTransformer.java > file & remade the war. But I see none of these prints comin

Re: Oracle Clob column with DIH does not turn to String

2009-04-03 Thread ashokc
Sure: data-config Xml === === A search result on the field short_desc: -- 1.8670129 oracle.sql.c...@155e3ab 4486 Develop Rating functionality

Re: Oracle Clob column with DIH does not turn to String

2009-04-03 Thread Noble Paul നോബിള്‍ नोब्ळ्
and which version of Solr are u using? On Fri, Apr 3, 2009 at 10:09 PM, ashokc wrote: > > Sure: > > data-config Xml > === > > >     url="jdbc:oracle:thin:@x" user="remedy" password="y"/> >     >             >                 >                 >                 >             >

Re: Oracle Clob column with DIH does not turn to String

2009-04-03 Thread ashokc
I downloaded the nightly build yesterday (2nd April), modified the ClobTransformer.java file with some prints, compiled it all (ant dist). It produced a war file, "apache-solr-1.4-dev.war". That is what I am using. My modification & compilation has not affected the results. I was getting the same

Re: Oracle Clob column with DIH does not turn to String

2009-04-03 Thread Noble Paul നോബിള്‍ नोब्ळ्
I guess u can write a custom transformer which gets a String out of the oracle.sql.CLOB. I am just out of clue, why this may happen. I even wrote a testcase and it seems to work fine --Noble On Fri, Apr 3, 2009 at 10:23 PM, ashokc wrote: > > I downloaded the nightly build yesterday (2nd April), m

Re: Spelling Component

2009-04-03 Thread Anoop Atre
Otis, Thanks for getting back...I did have to restart for the schema/config changes to take effect which I'd guessed. : ) I am using the SpellCheckComponent and following the directions on the wiki. It says to do a set it up using the component AND the RequestHandler. > http://wiki.apache.org/solr

Re: Spelling Component

2009-04-03 Thread Shalin Shekhar Mangar
On Sat, Apr 4, 2009 at 12:01 AM, Anoop Atre wrote: > I still don't get any suggestions when I do > /spellCheckCompRH?q=helultrashar&spellcheck=true&spellcheck.collate=true > > Did you build the spellcheck index? Try specifying a correct word which you know is in the index. See if spellchecker ret

Re: Oracle Clob column with DIH does not turn to String

2009-04-03 Thread ashokc
Happy to report that it is working. Looks like we have to use UPPER CASE for all the column names. When I examined the map 'aRow', it had the column names in upper case, where as my config had lower case. No match was found so nothing happened. Changed my config and it works now. Thanks for your h

Re: Spelling Component

2009-04-03 Thread Anoop Atre
Shalin, I "think" I did build the spellcheck index, I made the changes to solrconfig and schema, restarted, passed a &spellcheck.build=true which created the index. ls -ltr ./spellchecker -rw-r--r-- 1 XXX users 20 2009-04-03 13:23 segments.gen -rw-r--r-- 1 XXX users 28 2009-04-03 13:23 segments_f

Searching on mulit-core Solr

2009-04-03 Thread vivek sar
Hi, I've a multi-core system (one core per day), so there would be around 30 cores in a month on a box running one Solr instance. We have two boxes running the Solr instance and input data is feeded to them in round-robin fashion. Each box can have up to 30 cores in a month. Here are questions,

Solr 1.4 (nightly build) seem hung under load

2009-04-03 Thread vivek sar
Hi, I'm using Solr 1.4 (nightly build - 03/29/09). I'm stress testing my application with Solr. My app uses Solrj to write to remote Solr (on same box, but different JVM). The stress test sends over 2 million records (1 record = 500 bytes, with each record having 10 fields) within 5 minutes. All

Re: Solr 1.4 (nightly build) seem hung under load

2009-04-03 Thread vivek sar
Just an update on this issue, the Solr did come back after 80 min - so not sure where was it stuck. I do use RAMBuffer of 64MB and have heap size of 6G. There is no error is Solr log and I'd it running under WARNING level so missed the INFO if there was any during that period. I'm also not running

Re: caching

2009-04-03 Thread Chris Hostetter
I don't really understand your question. what do you mean by a "default query" ? as long as you have the caches that existing the example configs, then solr with cache queries and filters for you. and as long as you have a non-zero autowarm count for those caches, solr will use that number o

Re: Solr 1.4 (nightly build) seem hung under load

2009-04-03 Thread vivek sar
Hi, more update. It happened again and this time I'd INFO logged in the Solr log, INFO: {add=[330274716, 330274717, 330274718, 330274719, 330274720, 330274721, 330274722, 330274723, ...(14992 more)]} 0 6041 Apr 3, 2009 10:38:01 PM org.apache.solr.core.SolrCore execute INFO: [20090403] w

Re: Dynamic range Facets

2009-04-03 Thread Chris Hostetter
: my documents (products) have a price field, and I want to have : a "dynamically" calculated range facet for that in the response. ... : So the question is how to get the dynamic facets response from solr. : : This is same question as previously posted back in 2007. But still waits an

Multi-valued fields with DIH

2009-04-03 Thread ashokc
Hi, I need to assign multiple values to a field, with each value coming from a different column of the sql query. My data config snippet has lines like where 'project_area' & 'project_version' are output by the sql query to the datasource. The 'verbose-output'

solr index size

2009-04-03 Thread Jun Rao
Hi, We built a Solr index on a set of documents a few times. Each time, we did an optimize to reduce the index to a single segment. The index sizes are slightly different across different runs. Even though the documents are not inserted in the same order across runs, it seems to me that the fina

Re: Dynamic range Facets

2009-04-03 Thread John Wang
I think another challenge here is in distributed mode, how would you merge the ranges from subsearchers? -John On Fri, Apr 3, 2009 at 3:03 PM, Chris Hostetter wrote: > > : my documents (products) have a price field, and I want to have > : a "dynamically" calculated range facet for that in the res

Re: solr index size

2009-04-03 Thread Ning Li
Slightly different index sizes (even optimized) are normal - a same document may get different internal docids in different runs. I don't know why the number of terms are slight different. On Fri, Apr 3, 2009 at 7:21 PM, Jun Rao wrote: > > > Hi, > > We built a Solr index on a set of documents a

ExtractingRequestHandler Question

2009-04-03 Thread Venu Mittal
Hi, I am using ExtractingRequestHandler to index rich text documents. The way I am doing it is I get some data related to the document from database and then post an xml (containing only this data ) to solr. Then I make another call to solr, which sends the actual document to be indexed. But

Re: getting started

2009-04-03 Thread Chris Hostetter
: http://lucene.apache.org/solr/tutorial.html#Getting+Started : : link - lucene QueryParser syntax fixed in svn, ... the site should update in about 30 minutes. thanks for pointing this out. -Hoss

How to send a parsed Query to shards?

2009-04-03 Thread Dallan Quass
I want to use distributed search with some search components that I would like to execute only on the main server, not on the shards, because they reference some large in-memory lookup tables. After the search components get done processing the orignal query, the query may contain SpanNearQueries

Re: Multi-valued fields with DIH

2009-04-03 Thread Noble Paul നോബിള്‍ नोब्ळ्
the column names are case sensitive try this On Sat, Apr 4, 2009 at 3:58 AM, ashokc wrote: > > Hi, > I need to assign multiple values to a field, with each value coming from a > different column of the sql query. > > My data config snippet has lines like > > >

Re: Oracle Clob column with DIH does not turn to String

2009-04-03 Thread Noble Paul നോബിള്‍ नोब्ळ्
it is very expensive to do a case insensitive lookup. It must first convert all the keys to lower case and try looking up there. because it may not be always in uppercase it can be in mixed case as well On Sat, Apr 4, 2009 at 12:58 AM, ashokc wrote: > > Happy to report that it is working. Looks l

Re: Phrase Query Issue

2009-04-03 Thread dabboo
Erik, Thanks a lot for your reply. I have made some changes in the solr code and now field clauses are working fine with dismax request. Not only this, wildcard characters are also working with dismax and q query parameter. If you want I can share modified code with you. Thanks, Amit Garg Er