i want to use something like *query* similar to database - %query% like search

2009-12-02 Thread amittripathi
i am getting this error Query parsing error: Cannot parse '*droid*': '*' or '?' not allowed as first character in WildcardQuery i want to use something like *query* similar to database - %query% like search its accepting the trailing wildcard character but solr is not accepting the leading

Re: Hierarchical xml

2009-12-02 Thread Sascha Szott
Pooja, have a look at Solr's DataImportHandler. XPathEntityProcessor [1] should suit your needs. Best, Sascha [1] http://wiki.apache.org/solr/DataImportHandler#XPathEntityProcessor Pooja Verlani schrieb: Hi, I want to index an xml like following: officer nameJohn/name

Re: Hierarchical xml

2009-12-02 Thread Age Jan Kuperus
Pooja Verlani wrote: Hi, I want to index an xml like following: officer nameJohn/name dob1979-29-17T28:14:48Z/dob collegeGroup college nameABC College/name year1998/year /college college namePQRS College/name

Windows 7 / Java 64bit / solr 1.4 - solr.solr.home problem

2009-12-02 Thread Vladan Popovic
Hi, I installed solr 1.4 on Windows7 64bit with Java 1.6.0_17-b04 64bit and when I run the command: java -Dsolr.solr.home=multicore -jar start.jar I get the following error message: PS C:\nginx\solr\jetty java -Dsolr.solr.home=c:\nginx\solr\solr\multicore -jar start.jar Exception in thread

Indexing file content with custom field

2009-12-02 Thread Rodolico Piero
Hi, I need to index the contents of a file (doc, pdf, ecc) and a set of custom metadata specified in the XML like a standard request to Solr. From the documentation I can extract the contents of a file with the request /update/extract (tika) and index metadata with a second request /update by

Re: i want to use something like *query* similar to database - %query% like search

2009-12-02 Thread Olivier Dobberkau
Am 02.12.2009 um 09:55 schrieb amittripathi: its accepting the trailing wildcard character but solr is not accepting the leading wildcard character The Error message says it all. '*' or '?' not allowed as first character in WildcardQuery solr is not SQL. Olivier -- Olivier Dobberkau

Re: i want to use something like *query* similar to database - %query% like search

2009-12-02 Thread Chantal Ackermann
The DismaxRequestHandler can handle that query input. Add qt=dismax to your call. There is a default configuration of dismax in the solrconfig sample that ships with each release. You want to adopt that to your schema. Dismax will also allow you to search on multiple selected fields with

Re: i want to use something like *query* similar to database - %query% like search

2009-12-02 Thread Erick Erickson
Search the user list thread for leading wildcard and you'll find that this has been discussed many times, and you'll quickly locate several approaches to handling this. Best Erick On Wed, Dec 2, 2009 at 3:55 AM, amittripathi amit.nachof...@ymail.comwrote: i am getting this error Query

getting value from parent query in subquery transformer

2009-12-02 Thread Joel Nylund
Hi, I have an entity that has a entity within it that executes a query for each row and calls a transformer. Is there a way to pass a value from the parent query into the transformer? For example, I have an entity called document, and it it has an ID and sometimes it has a category. I

RE: question about schemas

2009-12-02 Thread solr-user
cbennett wrote: Solr supports multi value fields so you could store one document per customer and have multi value fields for the product information. Colin. Quoted from: http://old.nabble.com/question-about-schemas-tp26600956p26608618.html Thanks Colin. From the online docs, there

NOT combined with OR is not getting exected results

2009-12-02 Thread Joel Nylund
http://localhost:8983/solr/select?q=%28NOT%20categoryType:%22MEDIATYPE%22%29 :gives 292289 results http://localhost:8983/solr/select?q=fmMediaType:%22text%22 :gives 530 results http://localhost:8983/solr/select?q=%28NOT%20categoryType:%22MEDIATYPE%22%29%20OR%20fmMediaType:%22text%22

RE: question about schemas

2009-12-02 Thread gdeconto
I dont believe there is any way to link values in one multivalue field to values in other multivalue fields. Re where each doc contains the customer info and info for ALL products that the customer might have (likely done via dynamicfields): one thing you might want to consider is that this

Re: how is score computed with hsin functionquery?

2009-12-02 Thread gdeconto
Grant Ingersoll-6 wrote: ... Yep. Also note that I added deg() and rad() functions, but for the most part is probably better to do the conversion during indexing. ... as it is not possible for me to convert my data from deg to rad during import (since queries are done using degrees),

manipulation of the Document ( org.apache.lucene.document.Document )

2009-12-02 Thread Phanindra Reva
Hello , Our objective is to modify the Document ( org.apache.lucene.document.Document ) before its being indexed. I am just wondering about the places where we get the reference of the Document object, so that we can perform modification. Modifying, does just mean that changing name of

NullPointerException thrown during updates to index

2009-12-02 Thread smock
Hi, I'm running a distributed solr index (3 nodes) and have noticed frequent exceptions thrown during updates. The exception (see below for full trace) occurs in the mergeIds function of QueryComponents, in this code block: MapObject,ShardDoc resultIds = new HashMapObject,ShardDoc();

Re: NullPointerException thrown during updates to index

2009-12-02 Thread Erick Erickson
What version are you using? If a nightly build, from when? Thanks Erick On Wed, Dec 2, 2009 at 12:53 PM, smock harish.agar...@gmail.com wrote: Hi, I'm running a distributed solr index (3 nodes) and have noticed frequent exceptions thrown during updates. The exception (see below for full

no error delta fail with DataImportHandler

2009-12-02 Thread Thomas Woodard
I'm trying to get delta indexing set up. My configuration allows a full index no problem, but when I create a test delta of a single record, the delta import finds the record but then does nothing. I can only assume I have something subtly wrong with my configuration, but according to the

Re: NOT combined with OR is not getting exected results

2009-12-02 Thread Joel Nylund
Hi, thanks, but still get 530 results for this new query your proposed. thanks Joel On Dec 2, 2009, at 12:00 PM, AHMET ARSLAN wrote: http://localhost:8983/solr/select?q=%28NOT%20categoryType:%22MEDIATYPE%22%29 :gives 292289 results

java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;

2009-12-02 Thread Sulman
Hi, I am developing a search application. When I try to create an instance of CommonsHttpSolrServer I get an Error: java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams; Strangely i dont

Migrating to Open-Source Search with Lucene and Solr/ Free Webinar 8-Dec 2pm ET/11amPT/1900 GMT

2009-12-02 Thread Erik Hatcher
WEBINAR: Hosted by KMWorld and featuring speakers from The Motley Fool and Lucid Imagination Tuesday, Dec 8: 2pm ET/11amPT/1900 GMT Sign up here: http://www.kmworld.com/webinars/lucid/08dec2009/luc3 Greetings, I'll be presenting along with some of our customers from Motley Fool at a free

Re: Indexing file content with custom field

2009-12-02 Thread Sascha Szott
Piero, it sounds you're looking for an integration of Solr Cell and Solr's DIH facility -- a feature that isn't implemented yet (but the issue is already addressed in Solr-1358). As a workaround, you could store the extracted contents in plain text files (either by using Solr Cell or Apache

Re: NOT combined with OR is not getting exected results

2009-12-02 Thread AHMET ARSLAN
Hi, thanks, but still get 530 results for this new query your proposed. May be you have some documents that has empty categoryType field. Can you try this: q = ((*:* -categoryType:MEDIATYPE) OR fmMediaType:text) It should return at lest 292289 documents.

High add/delete rate and index fragmentation

2009-12-02 Thread Rodrigo De Castro
We are considering Solr to store events which will be added and deleted from the index in a very fast rate. Solr will be used, in this case, to find the right event we need to process (since they may have several attributes and we may search the best match based on the query attributes). Our

Re: creating Lucene document from an external XML file.

2009-12-02 Thread Chris Hostetter
: // one possibility to think about is that instead of modifying the documents : before sending them to Solr, you could write an UpdateProcessor tha runs : direclty in Solr and gets access to those Documents after Solr has already : parsed that XML (or even if the documents come from someplace

Re: Batch file upload using solrJ API

2009-12-02 Thread Chris Hostetter
: Is there an API to upload files over one connection versus looping through : all the files and creating new ContentStreamUpdateRequest for each file. : This, as expected, doesn't work if there are large number of files and : quickly run into memory problems. Please advise. can you elaborate on

Re: error with multicore CREATE action

2009-12-02 Thread Chris Hostetter
: : directory is created if it does not exist. Since it calls File#mkdirs, : all : : parent directories are also created. I don't think Solr creates those : : directories by itself. ... : Yes, that is correct but those changes are not in trunk right now. We're : planning to spend some

Re: Lock on old index files

2009-12-02 Thread Chris Hostetter
This is the expected behavior for any lucene based application -- as long as an IndexReader is opened on an index, it maintains open filehandles for the segments of the index at that moment in time -- as other changes are made to the index, new segments are created, and segment merges may

Solr Admin XPath

2009-12-02 Thread Matthew Runo
Hello folks! I'm attempting (!) to pull some data from the stats.jsp page using XPath so that it can be reported in a different application. I cannot seem to get the average QPS for the dismax handler, no matter how I try: try { XPathExpression reqPerSec =

Re: Webinar: An Introduction to Basics of Search and Relevancy with Apache Solr hosted by Lucid Imagination

2009-12-02 Thread Paul Rosen
Is there, or will there be, a screencast of this available? I'm sorry to have missed it. Tom Hill wrote: In this introductory technical presentation, renowned search expert Mark Bennett, CTO of Search Consultancy New Idea Engineering, will present practical tips and examples to help you

Re: Retrieving large num of docs

2009-12-02 Thread Chris Hostetter
: I think I solved the problem of retrieving 300 docs per request for now. The : problem was that I was storing 2 moderately large multivalued text fields : though I was not retrieving them during search time. I reindexed all my : data without storing these fields. Now the response time (time

RE: UTF-8 Character Set not specifed on OutputStreamWriter in StreamingUpdateSolrServer

2009-12-02 Thread Joe Kessel
I finally got around to testing the patch and it works well. Thanks, Joe Date: Mon, 23 Nov 2009 12:32:46 -0800 From: hossman_luc...@fucit.org To: solr-user@lucene.apache.org Subject: RE: UTF-8 Character Set not specifed on OutputStreamWriter in StreamingUpdateSolrServer :

Re: Webinar: An Introduction to Basics of Search and Relevancy with Apache Solr hosted by Lucid Imagination

2009-12-02 Thread Sulman
Yeah, screen cast or video of talk will be good for those who missed it. Highly recommend it.. Paul Rosen wrote: Is there, or will there be, a screencast of this available? I'm sorry to have missed it. Tom Hill wrote: In this introductory technical presentation, renowned search expert

Re: High add/delete rate and index fragmentation

2009-12-02 Thread Jason Rutherglen
Rodrigo, It sounds like you're asking about near realtime search support, I'm not sure. So here's few ideas. #1 How often do you need to be able to search on the latest updates (as opposed to updates from lets say, 10 minutes ago)? To topic #2, Solr provides master slave replication. The

Re: NOT combined with OR is not getting exected results

2009-12-02 Thread Joel Nylund
thanks that worked! and yes I have some with no categoryType thanks Joel On Dec 2, 2009, at 2:24 PM, AHMET ARSLAN wrote: Hi, thanks, but still get 530 results for this new query your proposed. May be you have some documents that has empty categoryType field. Can you try this: q = ((*:*

Re: question about schemas (and SOLR-1131?)

2009-12-02 Thread gdeconto
I saw an interesting thread in the solr-dev forum about multiple fields per fieldtype (https://issues.apache.org/jira/browse/SOLR-1131) from the sounds of it, it might be of interest and/or use in these types of problems; for your example, you might be able to define a fieldtype that houses the

Re: no error delta fail with DataImportHandler

2009-12-02 Thread Noble Paul നോബിള്‍ नोब्ळ्
the deltaQuery select 'product_id' and your deltaImportQuery uses ${dataimporter.delta.id} I guess it should have been ${dataimporter.delta. product_id} On Wed, Dec 2, 2009 at 11:52 PM, Thomas Woodard gtfo...@hotmail.com wrote: I'm trying to get delta indexing set up. My configuration allows a

Re: getting value from parent query in subquery transformer

2009-12-02 Thread Noble Paul നോബിള്‍ नोब्ळ्
you do not need to pass the values as shown here. Make use of the Context parameter (second implicit parameter) to get hold of the value of ${item.category} context.getVariableResolver().resolve('item.category')) On Wed, Dec 2, 2009 at 7:20 PM, Joel Nylund jnyl...@yahoo.com wrote: Hi, I have an