Issue using filter query with spellCheck component

2010-12-29 Thread taimurAQ
Hi, I am trying to use a filter query along with the spellcheck component but the resultant rows are completely ignoring the filter query parameter. I am using solrJ API to communicate with solr1.4. Here is a code snippet of how i am passing the query parameters: //start code snippet

Re: UPDATE query in deltaquery

2010-12-29 Thread Erick Erickson
Well, let's see the queries you're sending, and your DIH configuration. Otherwise, we're just guessing... Best Erick On Wed, Dec 29, 2010 at 9:58 PM, Juan Manuel Alvarez wrote: > Hi! I would like to ask you a question about using a deltaQuery in DIH. > I am syncing with a PostgreSQL database. >

Re: dynamic fields revisited

2010-12-29 Thread Ahmet Arslan
> If I understand you correctly, for an INT dynamic field > called *_int2 > filled with field callled my_number_int2 during data > import > in a query, I will search in the index on the field > called: >   "my_number_int2" > > correct? > Exactly. Using http://wiki.apache.org/solr/LukeRequestHa

Re: dynamic fields revisited

2010-12-29 Thread Dennis Gearon
- Original Message From: Lance Norskog To: solr-user@lucene.apache.org Sent: Wed, December 29, 2010 6:11:32 PM Subject: Re: dynamic fields revisited >>> B/ Is the search done on the dynamic filed name in the schema, or on the >name >> that was matched? >The dynamic wildcard field name

UPDATE query in deltaquery

2010-12-29 Thread Juan Manuel Alvarez
Hi! I would like to ask you a question about using a deltaQuery in DIH. I am syncing with a PostgreSQL database. At first I was calling a function that made two queries: an UPDATE and a SELECT. The select result was properly returned, but the UPDATE query did not made any changes, so I tried calli

Re: dynamic fields revisited

2010-12-29 Thread Lance Norskog
>A/ How much room in the index do 'non used' dynamic fields add per record, any? If you use field norms or document boosts in that field, there is a one-byte array[# of documents]. Otherwise there is no space used. >  B/ Is the search done on the dynamic filed name in the schema, or on the name >

Re: Function Query Syntax?

2010-12-29 Thread Ahmet Arslan
> We have documents which are comprised > of: > >     - A short list of terms (about 1 to 5 terms > per document) >     - An estimate of the probability of the terms > occurrence (stored as tint) > > For each term in the index, we would like to get the result > of the following function: > >    

Re: Query multiple cores

2010-12-29 Thread Tomás Fernández Löbbe
You could use the different cores as "shards", the "Distributed Search" stuff would work, even if it isn't really distributed on different machines. The question is, do you really need this? Do you have the same schema on both cores? "Distributed search" is not exactly the same as "Solr Cloud", th

Re: Query multiple cores

2010-12-29 Thread Mark
I own the book already Smiley :) I'm somewhat familiar with this feature but I wouldn't be searching across multiple machines. I would like to search across two separate cores on the same machine. Is distributed search the same as Solr cloud? When would one choose one over the other? On 12

Re: Query multiple cores

2010-12-29 Thread Smiley, David W.
I recommend looking for answers on the wiki (or my book) before asking basic questions on the list. Here you go: http://wiki.apache.org/solr/DistributedSearch ~ David Smiley Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/ On Dec 29, 2010, at 3:24 PM, Mark wrote: > Is it poss

Query multiple cores

2010-12-29 Thread Mark
Is it possible to query across multiple cores and combine the results? If not available out-of-the-box could this be accomplished using some sort of custom request handler? Thanks for any suggestions.

problems with replication

2010-12-29 Thread Roxana Angheluta
Hi, What can cause the following error on the master - stack trace below. The slave is stuck in the middle of replication until manual intervention and responds very slow to searches. Thanks, roxana Dec 29, 2010 8:25:52 PM org.apache.solr.handler.ReplicationHandler$FileStream write WARNING: Ex

Function Query Syntax?

2010-12-29 Thread CRB
We have documents which are comprised of: - A short list of terms (about 1 to 5 terms per document) - An estimate of the probability of the terms occurrence (stored as tint) For each term in the index, we would like to get the result of the following function: (our estimate of t

CapitalizationFilter

2010-12-29 Thread Peter Keegan
I was looking at 'CapitalizationFilter' and noticed that the 'incrementToken' method splits words at ' ' (space) and '.' (period). I'm curious as to why the period is treated as a word separator? This could cause unexpected results, for example: "Hello There My Name Is Dr. Watson" ---> "Hello Ther

Re: [DIH] and XML Namespaces

2010-12-29 Thread Adam Estrada
Piece of cake! http://wiki.apache.org/solr/DataImportHandler#HttpDataSource_Example "Our XPath support has its limitations (no wildcards , only fullpath etc) but we have tried to make sure that common use-cases are covered and

Re: DIH and UTF-8

2010-12-29 Thread Jonathan Rochkind
I haven't tried it yet, but I _think_ in Rails if you are using the 'mysql2' adapter (now standard with Rails3) instead of 'mysql', it might handle utf-8 better with less areas for gotchas. I think if the underlying mysql database is set to use utf-8, then, at least with mysql2 adapter, you sh

[DIH] and XML Namespaces

2010-12-29 Thread Adam Estrada
All, I am indexing some RSS feeds that are bound to specific namespaces. See below... http://ws.geonames.org/rssToGeoRSS?geoRSS=simple&feedUrl=http://www.cbp.gov/xp/cgov/admin/rss/?rssUrl=/home.xml " processor="XPathEntityProcessor" forEach="/rss/channel | /rss/ch

Collapsing with start, rows parameters

2010-12-29 Thread samarth s
Hi, I am using collapsing with start & rows parameters. For start=0 & rows=10 my query looks like: q=f1:v1+AND+f2:v2&date:[*+TO+*]&rows=10&start=0&fl=rootId&collapse.field=rootId&collapse.threshold=1&collapse.type=normal&collapse.includeCollapsedDocs.fl=id The same query with start=10, gives me a

Re: Custom Analyzer

2010-12-29 Thread Erick Erickson
Your problem is probably a classpath issue, but that's like saying "something's not right", there can be many reasons the classloader can't find your class. Look in your jar files to insure that you have what you think is in there, you can use 'jar -tf jarfile.jar' to see a list of classes in the

Custom Analyzer

2010-12-29 Thread nitishgarg
I have written a custom analyzer for Marathi Language on the lines of French Analyzer present in Lucene tweaking the stemming part. For compilation I put the three classes MarathiAnalyzer, MarathiStemFilter and MarathiStemmer in the MarathiAnalyzer class only (otherwise I was receiving errors that

Re: DIH and UTF-8

2010-12-29 Thread Mark
Sure thing. In my database.yml I was missing the "encoding: utf8" option. If one were to add unicode characters within rails (console, web form, etc) the characters would appear to be saved correctly... ie when trying to retrieve them back, everything looked perfect. The characters also appea

Re: Removing deleted terms from spellchecker index

2010-12-29 Thread Erick Erickson
First, committing after every add/delete is probably a bad idea unless you only add/delete very occasionally (as in no more often than every 5 minutes say). Let your autocommit parameters commit for you. The problem here is that your searchers will try to autowarm every time you commit, which can

Re: Creating Solr index from map/reduce

2010-12-29 Thread Joan
If I rename my custom schema file (schema-xx.xml), whitch is located in SOLR_HOME/schema/, and then I copy it to "conf" folder and finally I try to run CSVIndexer, it shows me an other error: Caused by: java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in classpath or '/tmp/hadoop-r

Re: Removing deleted terms from spellchecker index

2010-12-29 Thread Hasnain
Hi guys, Thankyou for the answers, now it is working properly. I have just one concern about this approch, we are already committing after every add/delete operation. Can I substitude this with only optimize command? and how would this effect our performance? -- View this message in context: ht

Creating Solr index from map/reduce

2010-12-29 Thread Joan
Hi, I'm trying generate Solr index from hadoop (map/reduce) so I'm using this patch SOLR-301 , however I don't get it. When I try to run CSVIndexer with some arguments: -solr I'm runnig CSVIndexer: /bin/hadoop jar my.jar CSVIndexer -solr /

Re: Removing deleted terms from spellchecker index

2010-12-29 Thread Peter Karich
how did you remove the term? In the spellcheck file? did you rebuild the spellcheck index? Regards, Peter. > Hi, > > I have configured spellchecker in solrconfig.xml and it is working fine for > existing terms. However, if i delete a term, it is still being returned as a > suggestion from the sp

Re: old index files not deleted on slave

2010-12-29 Thread Lance Norskog
You should use Locktype 'simple' instead of 'single'. I've never heard of a .nfs000* file. On Tue, Dec 28, 2010 at 8:42 PM, sakunthalakishan wrote: > > We are using Locktype "single". > -- > View this message in context: > http://lucene.472066.n3.nabble.com/old-index-files-not-deleted-on-slave-

Re: Removing deleted terms from spellchecker index

2010-12-29 Thread Ahmet Arslan
> I have configured spellchecker in solrconfig.xml and it is > working fine for > existing terms. However, if i delete a term, it is still > being returned as a > suggestion from the spellchecker, even though the term is > not being returned > if i search the main index. > > Can anyone guide me as

Removing deleted terms from spellchecker index

2010-12-29 Thread Hasnain
Hi, I have configured spellchecker in solrconfig.xml and it is working fine for existing terms. However, if i delete a term, it is still being returned as a suggestion from the spellchecker, even though the term is not being returned if i search the main index. Can anyone guide me as to what cou