Re: NOT operator not working

2011-01-28 Thread Grijesh
q=(sharp+AND+-deviceType:Access*) that is not the query type of dismax for q operator (deviceType:Access*). either you use as Filter query or write query like q=(sharp AND -Access*) - Thanx: Grijesh -- View this message in context: http://lucene.472066.n3.nabble.com/NOT-operator-not-worki

Re: A Maven archetype that helps packaging Solr as a standalone application embedded in Apache Tomcat

2011-01-28 Thread Simone Tripodi
Hi Stefan, thanks a lot, I'm joining now! :) http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Thu, Jan 27, 2011 at 4:27 PM, Stefan Matheis wrote: > Simo, it's freenode.net > > On Thu, Jan 27, 2011 at 4:16 PM, Simone Tripodi > wrote: > >> Hi Paul, >> sorry I'm late but I've b

Re: Does solr supports indexing of files other than UTF-8

2011-01-28 Thread prasad deshpande
Thanks paul. However I want to support local encoding files to be indexed. How would I achieve it? On Thu, Jan 27, 2011 at 2:46 PM, Paul Libbrecht wrote: > At least in java utf-8 transcoding is done on a stream basis. No issue > there. > > paul > > > Le 27 janv. 2011 à 09:51, prasad deshpande a

Execute a second request in a component

2011-01-28 Thread Damien Fontaine
Hi, I would execute a second solr request in a component. Someone has already done that ? Regards, Damien

Re: configure httpclient to access solr with user credential on third party host

2011-01-28 Thread Upayavira
On Thu, 27 Jan 2011 13:47 -0800, "Darniz" wrote: > > thanks exaclty i asked my domain hosting provider and he provided me with > some other port > > i am wondering can i specify credentials without the port > > i mean when i open the browser and i type > www.mydomainmame/solr i get the tomca

Re: Solr for noSQL

2011-01-28 Thread Upayavira
On Thu, 27 Jan 2011 21:38 -0800, "Dennis Gearon" wrote: > Why not make one's own DIH handler, Lance? Personally, I don't like that approach. Solr is best related to as something of a black box that you configure, then push content to. Having Solr know about your data sources, and pull content i

Re: DismaxParser Query

2011-01-28 Thread Erick Erickson
yes. I know it's been done by other users, but haven't done it myself... Best Erick On Fri, Jan 28, 2011 at 12:37 AM, Isan Fulia wrote: > Hi all, > I am currently using solr1.4.1 .Do I need to apply patch for extended > dismax parser. > > On 28 January 2011 03:42, Erick Erickson wrote: > > > I

Re: Execute a second request in a component

2011-01-28 Thread Erick Erickson
What are you trying to do? That is, what's the use-case you're trying to realize? Because there's not enough information here to give a helpful reply... Best Erick On Fri, Jan 28, 2011 at 4:25 AM, Damien Fontaine wrote: > Hi, > > I would execute a second solr request in a component. Someone has

Re: Solr for noSQL

2011-01-28 Thread Erick Erickson
I'll reply for Lance because I'm awake earlier ... To make your own DIH, you have to solve all the problems you'd have to solve to use a Java program connect to your datasource via JDBC, PLUS fit it into the DIH framework. Why do the extra work? The other thing is that writing your own code gives

Re: Solr for noSQL

2011-01-28 Thread Alejandro Delgadillo
Have you tried indexing using HTTP POST, you just call your information or documents from your DB and store it in a variable, next you just loop the POST as many register you have, and problem solve. With this method it doesn't matter what kind of DB you are using... On 1/28/11 7:43 AM, "Erick E

field=string with value: 0, 1 and 2

2011-01-28 Thread stockii
Hello- i am using shard-requests over several cores. each core has his own index and own schema. but every core have the field "status" ! regularly the status is 0 or 1. but one core can have the status: 0, 1 OR 2 --> the status field type i used is "string" but string make the cores (with onl

Re: field=string with value: 0, 1 and 2

2011-01-28 Thread stockii
i think DIH is the problem !? when i am using "int" as type for the fields, solr NumberFormatException occurs - For input string: "false" - --- System One Server, 12 GB RAM, 2 Solr Instances, 7 Cores, 1 Core with 31 Mil

Re: Does solr supports indexing of files other than UTF-8

2011-01-28 Thread Dennis Gearon
Use ICONV library in your server side language. Convert it to utf-8, store it with a filed describing what incoding it was in, and re encode it if you wish. Dennis Gearon Signature Warning It is always a good idea to learn from your own mistakes. It is usually a better idea

Re: Solr for noSQL

2011-01-28 Thread Dennis Gearon
Personally, I just create a view that flattens out the database and renames the fields as I desire. Then I call the view with the DIH to import it. Solr doesn't knwo anything about the databsae, except how to get a connection and fetch rows. And that's pretty darn useful, just that much less cod

Re: Does solr supports indexing of files other than UTF-8

2011-01-28 Thread Yonik Seeley
On Thu, Jan 27, 2011 at 3:51 AM, prasad deshpande wrote: > The size of docs can be huge, like suppose there are 800MB pdf file to index > it I need to translate it in UTF-8 and then send this file to index. PDF is binary AFAIK... you shouldn't need to do any charset translation before sending it

Re: Searching for negative numbers very slow

2011-01-28 Thread Yonik Seeley
On Thu, Jan 27, 2011 at 6:32 PM, Simon Wistow wrote: > If I do > >        qt=dismax >    fq=uid:1 > > (or any other positive number) then queries are as quick as normal - in > the 20ms range. > > However, any of > >        fq=uid:\-1 > > or > >    fq=uid:[* TO -1] > > or > >    fq=uid:[-1 to -1] >

DIH populate multiple fields with one column

2011-01-28 Thread alexei
Hi All, I attempting to parse xml stored in a database as blobs and then store pieces of this xml such as titles and authors in separate fields. The above configuration works, but the issue is t

Http Connection is hanging while deleteByQuery

2011-01-28 Thread shan2812
Hi, I am trying to delete Solr documents using deleteByQuery(). Unfortunately it simply hangs, for a long time. I have tried using both SimpleHttpConnectionManager and MultiThreaded...(default) 1. SolrServer solr; SimpleHttpConnectionManager cm = new SimpleHttpConnectionManager(true); the belo

Re: Http Connection is hanging while deleteByQuery

2011-01-28 Thread shan2812
Though it may not be needed, just to ad.. this is how I delete by query UpdateResponse updateResponse = solr.deleteByQuery(new SolrQuery("my_query")); -- View this message in context: http://lucene.472066.n3.nabble.com/Http-Connection-is-hanging-while-deleteByQuery-tp2367405p2367410.html Sent

Re: filter update by IP

2011-01-28 Thread Thibaut
On 01/24/2011 02:02 AM, Jonathan Rochkind wrote: Kind of personally curious_why_ it keeps coming up on the list so much. Is everyone trying to go into business vending Solr in the cloud to customers who will write their own apps, or are there some other less obvious (to me) use cases? In my

Re: configure httpclient to access solr with user credential on third party host

2011-01-28 Thread Thibaut
hi I just wrote a plugin for Lutece portal to restrict access to read/write of solr to Lutece admin and read access for the rest: http://goo.gl/f3pGA t.

Sending binary data as part of a query

2011-01-28 Thread Jay Luker
Hi all, Here is what I am interested in doing: I would like to send a compressed integer bitset as a query to solr. The bitset integers represent my document ids and the results I want to get back is the facet data for those documents. I have successfully created a QueryComponent class that, assu

Filter Query, Filter Cache and Hit Ratio

2011-01-28 Thread Renaud Delbru
Hi, I am looking for some more information on how the filter cache is working, and how the hit are incremented. We are using filter queries for certain predefined value, such as the timestamp:[2011-01-21T00:00:00Z+TO+NOW] (which is the current day). From what I understand from the documentat

RE: Filter Query, Filter Cache and Hit Ratio

2011-01-28 Thread cbennett
Hi, You've used NOW in the range query which will give a date/time accurate to the millisecond, try using NOW\DAY Colin. > -Original Message- > From: Renaud Delbru [mailto:renaud.del...@deri.org] > Sent: Friday, January 28, 2011 2:22 PM > To: solr-user@lucene.apache.org > Subject: Filter

RE: Filter Query, Filter Cache and Hit Ratio

2011-01-28 Thread cbennett
Ooops, I meant NOW/DAY > -Original Message- > From: cbenn...@job.com [mailto:cbenn...@job.com] > Sent: Friday, January 28, 2011 3:37 PM > To: solr-user@lucene.apache.org > Subject: RE: Filter Query, Filter Cache and Hit Ratio > > Hi, > > You've used NOW in the range query which will gi

Thoughts on USING dynamic fields for extending objects

2011-01-28 Thread Dennis Gearon
Well, mid, next month we're going to start using dynamic fields as the relate to our business rules. Basically, in involves have a basic set of objects in code/database, and flattened for search in Solr. The MAIN business object is to be extendable by the custoemer, will still having to supply

Re: DIH populate multiple fields with one column

2011-01-28 Thread alexei
Sorry about this post. I'll RTFM more carefully next time. Resolved: Regards, Alexei -- View this message in context: http://lucene.472066.n3.nabble.com/DIH-populate-multiple-fields-with-one-column-tp

Re: edismax vs dismax

2011-01-28 Thread Yonik Seeley
On Fri, Jan 28, 2011 at 3:00 PM, Thumuluri, Sai wrote: > I recently upgraded to Solr 1.4.1 from Solr 1.3 and with the upgrade > used edismax query parser. Here is my solrconfig.xml . When I search for > "mw verification and payment information" - I get no results with > defType set to edismax, It

deleteById throwing SocketTimeoutException

2011-01-28 Thread Ravi Kiran
Hello, We have a core with about 900K docs. Recently I have noticed that the deleteById query seems to always give me a SocketTimeoutException(stack trace is shown below). I cannot figure out why only deletion fails but not add/update. The SOLR client instance is created via spring wiring (

[Failure] to start Solr 4.0

2011-01-28 Thread Adam Estrada
All, I've checked out the latest code and built the root directory with ant compile and then I build the solr directory again using the ant dist command which gives me the lucene-libs directory and a couple others. Now Solr won't start. What am I missing??? This is as far as it gets. mini:ex

Re: [Failure] to start Solr 4.0

2011-01-28 Thread Adam Estrada
I found the problem...You HAVE to build the Solr directory using "ant example" in order for the web application to start properly. Sorry to post so many times. Adam On Jan 28, 2011, at 5:20 PM, Adam Estrada wrote: > All, > > I've checked out the latest code and built the root directory with an

Controlling Tika's metadata

2011-01-28 Thread Andreas Kemkes
Just getting my feet wet with the text extraction using both schema and solrconfig settings from the example directory in the 1.4 distribution, so I might miss something obvious. Trying to provide my own title (and discarding the one received through Tika's metadata) wasn't straightforward. I h

DeletepkQuery is not actually deleting the records, please help

2011-01-28 Thread makeyourrules
Hello, I am trying to delete some records from my index with delta-import using deletePkQuery with the below config, the log prints the deleted documents and says delta import successfully, but when I search, my search results still have those deleted documents, i have already spent so much time

Re: How to group result when search on multiple fields

2011-01-28 Thread cyang2010
I don't think this field collapsing can simply solve my problem after second thought. As I mentioned, user only type in a search phrase, and click on search. Underlying that, the application logic is going to compose search query against multiple fields (title_name, actors, directors, ...) by th

Re: How to group result when search on multiple fields

2011-01-28 Thread cyang2010
Some typo out there in my example: I mean the first 2 movies by angelina jolie. This is the correct example: result 1: <-- title match score: 1.0 title_name: tom's story actor: Angelina Jolie result 2: <-- title match score: 0.95 title_name: tom green's store actor: Angelina Jolie result

velocity tools in solr-contrib-velocity?

2011-01-28 Thread Paul Libbrecht
Hello list, can anyone tell me how I can plug the velocity tools into my solr? Do I understand correctly the following comment in the source: // Velocity context tools - TODO: make these pluggable that it's only hard-coded thus far? thanks in advance paul

solr - uima error

2011-01-28 Thread Darx Oman
I tried to do the uima integration with solr I followed the steps in the readme file using the solr example folder as my solr instance but when I started solr, I got this error message HTTP ERROR 500 Problem accessing /solr/admin/. Reason: Severe errors in solr configuration. Check your log