Re: Filtering Solr pivot facet values

2017-12-20 Thread Arun Rangarajan
3}, {"field": "interests", "value": "tennis", "count": 2}, {"field": "interests", "value": "futbol", "count": 1} ] }, { "field": "hierarch

Re: Filtering Solr pivot facet values

2017-12-20 Thread Arun Rangarajan
Hello Solr Gurus, Sorry to bother you again on this. Is there no way in Solr to filter pivot facets? [Or did I attract the wrath of the group by posting the question first on StackOverflow? :-)] Thanks once again. On Mon, Dec 18, 2017 at 10:59 AM, Arun Rangarajan <arunrangara...@gmail.

Filtering Solr pivot facet values

2017-12-18 Thread Arun Rangarajan
Solr version: 6.6.0 There are two multi-valued string fields in my schema: * interests * hierarchy. Goal is to run a pivot facet query on both these fields, but only for specific values of `interests` field. This query: ``` /select ?wt=json =0 =interests:(hockey OR soccer) =true

Re: Special character and wildcard matching

2015-02-24 Thread Arun Rangarajan
it is as if the Lucene prefix query was mapping the accented characters. It's not supposed to do that, but... Go ahead and file a Jira bug. Include all of the details that you provided in this thread. -- Jack Krupansky On Tue, Feb 24, 2015 at 2:35 PM, Arun Rangarajan arunrangara...@gmail.com wrote: Exact

Re: Special character and wildcard matching

2015-02-24 Thread Arun Rangarajan
}, {raw_name: beyoncé }] }} On Tue, Feb 24, 2015 at 11:01 AM, Jack Krupansky jack.krupan...@gmail.com wrote: Please post the info I requested - the exact query, and the Solr response. -- Jack Krupansky On Tue, Feb 24, 2015 at 12:45 PM, Arun Rangarajan arunrangara...@gmail.com

Re: Special character and wildcard matching

2015-02-24 Thread Arun Rangarajan
, 2015 at 6:52 PM, Arun Rangarajan arunrangara...@gmail.com wrote: I have a string field raw_name like this in my document: {raw_name: beyoncé} (Notice that the last character is a special character.) When I issue this wildcard query: q

Special character and wildcard matching

2015-02-23 Thread Arun Rangarajan
I have a string field raw_name like this in my document: {raw_name: beyoncé} (Notice that the last character is a special character.) When I issue this wildcard query: q=raw_name:beyonce* i.e. with the last character simply being the ASCII 'e', Solr returns me the above document. How do I

Re: Special character and wildcard matching

2015-02-23 Thread Arun Rangarajan
jack.krupan...@gmail.com wrote: Is it really a string field - as opposed to a text field? Show us the field and field type. Besides, if it really were a raw name, wouldn't that be a capital B? -- Jack Krupansky On Mon, Feb 23, 2015 at 6:52 PM, Arun Rangarajan arunrangara...@gmail.com wrote: I

AND query not working on stopwords as expected

2015-02-16 Thread Arun Rangarajan
Solr version 4.2.1 In my schema, I have text type defined as follows: --- fieldType name=text class=solr.TextField positionIncrementGap=100 analyzer type=index tokenizer class=solr.WhitespaceTokenizerFactory/ filter class=solr.StopFilterFactory words=stopwords.txt

Re: Boost query syntax error

2014-03-03 Thread Arun Rangarajan
All of them work like a charm! Thanks, Chris. On Mon, Mar 3, 2014 at 1:28 PM, Chris Hostetter hossman_luc...@fucit.orgwrote: : But this query does not work: : : q={!boost : b=if(exists(query({!v='user_type:ADMIN'})),10,1)}id:1rows=1fl=*,score : It gives an error like this: The problem

Re: Date query not returning results only some time

2014-03-02 Thread Arun Rangarajan
the problem is solved no matter what. Erick On Sat, Mar 1, 2014 at 10:26 PM, Arun Rangarajan arunrangara...@gmail.com wrote: The slave is polling the master after the interval specified in solrconfig.xml. The slave essentially asks has anything changed? If so, the changes are brought

Re: How to best handle search like Dave David

2014-03-02 Thread Arun Rangarajan
If you are trying to serve results as users are typing, then you can use EdgeNGramFilter (see https://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.EdgeNGramFilterFactory ). Let's say you configure your field like this, as shown in the Solr wiki: fieldType

Re: Date query not returning results only some time

2014-03-01 Thread Arun Rangarajan
anyway? Sounds like it's quite frequent if you notice this immediately after the DIH starts. Best, Erick On Fri, Feb 28, 2014 at 9:04 PM, Arun Rangarajan arunrangara...@gmail.com wrote: I believe I figured out what the issue is. Even though we do not open a new searcher on master during

Date query not returning results only some time

2014-02-28 Thread Arun Rangarajan
Solr server version 4.2.1 I am facing a strange issue with a date query like this: q=first_publish_date:[NOW/DAY-33DAYS TO NOW/DAY-3DAYS] AND -tag_id:268702fq=(burial_score:[* TO 0.49] AND -tag_id:286006)rows=1sort=random_906313237 ascfl=id The only process by which we add documents to the core

Boost query syntax error

2014-02-28 Thread Arun Rangarajan
The Solr function query documentation ( https://wiki.apache.org/solr/FunctionQuery#exists) says: exists(query({!v='year:2012'})) will return true for docs with year=2012 I have a document like: { id: 1, user_type: ADMIN, like_score: 1 } id, user_type and like_score are all indexed and

Re: Date query not returning results only some time

2014-02-28 Thread Arun Rangarajan
documents before applying the negation. So, AND -tag_id:268702 should be: AND (*:* -tag_id:268702) Or, maybe you actually wanted this: first_publish_date:[NOW/DAY-33DAYS TO NOW/DAY-3DAYS] -tag_id:268702 -- Jack Krupansky -Original Message- From: Arun Rangarajan Sent: Friday

Re: Date query not returning results only some time

2014-02-28 Thread Arun Rangarajan
Thx, Erick and Chris. This is indeed very strange. Other queries which do not restrict by the date field are returning results, so the index is definitely not empty. Has it got something to do with the date query part, with NOW/DAY or something in here? first_publish_date:[NOW/DAY-33DAYS TO

Re: Date query not returning results only some time

2014-02-28 Thread Arun Rangarajan
have primary keys, newly added docs will overwrite old docs as they get added. - disable replication after commits. Replicate only after optimize. Thx all for your help. On Fri, Feb 28, 2014 at 8:06 PM, Arun Rangarajan arunrangara...@gmail.comwrote: Thx, Erick and Chris. This is indeed very

Re: Is 'optimize' necessary for a 45-segment Solr 4.6 index?

2014-02-11 Thread Arun Rangarajan
with all segments roughly of equal sizes. Will try using that and see if that is good enough for us. On Sun, Feb 9, 2014 at 11:22 PM, Shawn Heisey s...@elyograg.org wrote: On 2/9/2014 11:41 PM, Arun Rangarajan wrote: I have a 28 GB Solr 4.6 index with 45 segments. Optimize failed

Is 'optimize' necessary for a 45-segment Solr 4.6 index?

2014-02-09 Thread Arun Rangarajan
I have a 28 GB Solr 4.6 index with 45 segments. Optimize failed with an 'out of memory' error. Is optimize really necessary, since I read that lucene is able to handle multiple segments well now?

Re: Replicating files containing external file fields

2013-07-02 Thread Arun Rangarajan
the answer to the reload question at the tip of my tongue. -- Jack Krupansky -Original Message- From: Arun Rangarajan Sent: Friday, June 28, 2013 7:42 PM To: solr-user@lucene.apache.org Subject: Re: Replicating files containing external file fields Jack, Here is the ReplicationHandler

Re: Replicating files containing external file fields

2013-06-28 Thread Arun Rangarajan
the confFiles trick with relative paths, see: http://wiki.apache.org/solr/SolrReplication Or just put your EFF files in the data dir? Best Erick On Wed, Jun 26, 2013 at 9:01 PM, Arun Rangarajan arunrangara...@gmail.comwrote: From https://wiki.apache.org/solr/SolrReplication I understand

Re: Replicating files containing external file fields

2013-06-28 Thread Arun Rangarajan
confFiles directive. Maybe there is some subtle error in the file name. -- Jack Krupansky -Original Message- From: Arun Rangarajan Sent: Friday, June 28, 2013 1:06 PM To: solr-user@lucene.apache.org Subject: Re: Replicating files containing external file fields Erick, Thx for your reply

Solr 4.2.1 - master taking long time to respond after tomcat restart

2013-06-26 Thread Arun Rangarajan
Upgraded from Solr 3.6.1 to 4.2.1. Since we wanted to use atomic updates, we enabled updateLog and made the few unstored int and boolean fields as stored. We have a single master and a single slave and all the queries go only to the slave. We make only max. 50 atomic update requests/hour to the

How to get values of external file field(s) in Solr query?

2013-06-26 Thread Arun Rangarajan
http://docs.lucidworks.com/display/solr/Working+with+External+Files+and+Processes says this about external file fields: They can be used only for function queries or display. I understand how to use them in function queries, but how do I retrieve the values for display? If I want to fetch only

Re: Solr 4.2.1 - master taking long time to respond after tomcat restart

2013-06-26 Thread Arun Rangarajan
start. -- Jack Krupansky -Original Message- From: Arun Rangarajan Sent: Wednesday, June 26, 2013 1:18 PM To: solr-user@lucene.apache.org Subject: Solr 4.2.1 - master taking long time to respond after tomcat restart Upgraded from Solr 3.6.1 to 4.2.1. Since we wanted to use atomic

Re: How to get values of external file field(s) in Solr query?

2013-06-26 Thread Arun Rangarajan
Yonik, Thanks, your answer works! On Wed, Jun 26, 2013 at 2:07 PM, Yonik Seeley yo...@lucidworks.com wrote: On Wed, Jun 26, 2013 at 4:02 PM, Arun Rangarajan arunrangara...@gmail.com wrote: http://docs.lucidworks.com/display/solr/Working+with+External+Files+and+Processes says this about

Replicating files containing external file fields

2013-06-26 Thread Arun Rangarajan
From https://wiki.apache.org/solr/SolrReplication I understand that index dir and any files under the conf dir can be replicated to slaves. I want to know if there is any way the files under the data dir containing external file fields can be replicated. These are not replicated by default.

Why is my DIH delta import doing a full import?

2013-06-04 Thread Arun Rangarajan
I upgraded from Solr 3.6.2 to 4.2.1 and I am noticing that my data import handler's delta import is actually doing a full import. In my data-config.xml, I have an entity named 'Lists' defined as follows: - entity name=Lists pk=l.list_id

Re: Why is my DIH delta import doing a full import?

2013-06-04 Thread Arun Rangarajan
this approach may skip some documents, but we do full import once a day so those docs should eventually catch up. Guess that's the best I can get with DIH for now! On Tue, Jun 4, 2013 at 7:05 AM, Shawn Heisey s...@elyograg.org wrote: On 6/4/2013 7:52 AM, Arun Rangarajan wrote: I upgraded from Solr

Re: Why is my DIH delta import doing a full import?

2013-06-04 Thread Arun Rangarajan
. On Tue, Jun 4, 2013 at 9:21 AM, Raheel Hasan raheelhasan@gmail.comwrote: maybe this will help you: http://wiki.apache.org/solr/DataImportHandlerDeltaQueryViaFullImport On Tue, Jun 4, 2013 at 8:38 PM, Arun Rangarajan arunrangara...@gmail.com wrote: Shawn, Thanks for your reply. My

How to use $docBoost in data import handler?

2013-05-21 Thread Arun Rangarajan
Solr version: 4.2.1 As explained here: https://wiki.apache.org/solr/DataImportHandler#Special_Commands, I am trying to use index-time document-level boost in data import handler. I have a database table 'boosts' in which the document boosts are stored against the solr unique key. In

Re: How to use $docBoost in data import handler?

2013-05-21 Thread Arun Rangarajan
://blog.outerthoughts.com/ LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch - Time is the quality of nature that keeps events from happening all at once. Lately, it doesn't seem to be working. (Anonymous - via GTD book) On Tue, May 21, 2013 at 7:13 PM, Arun Rangarajan arunrangara

Solr Boolean query help

2013-05-13 Thread Arun Rangarajan
I am trying to form a Solr query. Our documents have a multi-valued field named tag_id. I want to get documents that either do not have tag_id 1 or have both tag_id 1 and 2 i.e. q=(tag_id:(1 AND 2) OR tag_id:(NOT 1)) This is not giving the desired results. The result is the same as that of

Re: Solr Boolean query help

2013-05-13 Thread Arun Rangarajan
: Arun Rangarajan Sent: Monday, May 13, 2013 4:11 PM To: solr-user@lucene.apache.org Subject: Solr Boolean query help I am trying to form a Solr query. Our documents have a multi-valued field named tag_id. I want to get documents that either do not have tag_id 1 or have both tag_id 1 and 2 i.e

Re: Solr Range Queries with Field value

2013-04-30 Thread Arun Rangarajan
Erick, I believe Indika wants to do this SQL WHERE clause in Solr: WHERE start_time_utc_epoch = '1970-01-01T00:00:00Z' AND start_time_utc_epoch = merchant_end_of_day_in_utc_epoch On Tue, Apr 30, 2013 at 11:49 AM, Erick Erickson erickerick...@gmail.comwrote: Could you define your use-case in

Random IllegalStateExceptions on Solr slave (3.6.1)

2013-04-30 Thread Arun Rangarajan
We have a master-slave Solr set up and run live queries only against the slave. Full import (with optimize) happens on master every day at 2 a.m. Delta imports happen every 10 min for one entity and every hour for another entity. The following exceptions occur a few times every day in our app

Using properties from solrcore.properties in data-config.xml (Solr 4.2.1)

2013-04-29 Thread Arun Rangarajan
We are trying to upgrade from Solr 3.6.2 to Solr 4.2.1 and are having problems with using properties in solrcore.properties inside data-config.xml. With Solr 3.6.2, we were able to directly use properties in solrcore.properties inside data-config.xml like ${jdbc.driver}, ${jdbc.username}, etc.,

Re: Help with sort on dynamic field and out of memory error

2012-11-27 Thread Arun Rangarajan
On Tue, Nov 27, 2012 at 9:25 PM, Arun Rangarajan arunrangara...@gmail.comwrote: We have a Solr 3.6 core that has about 250 TrieIntFields (declared using dynamicField). There are about 14M docs in our Solr index and many documents have some value in many of these fields. We have a need

Re: Integrating Solr's SynonymFilter in lucene

2010-08-18 Thread Arun Rangarajan
lucene analyzer? Thanks. On Tue, Aug 17, 2010 at 4:51 PM, Arun Rangarajan arunrangara...@gmail.comwrote: I am trying to have multi-word synonyms work in lucene using Solr's * SynonymFilter*. I need to match synonyms at index time, since many of the synonym lists are huge. Actually they are really

Integrating Solr's SynonymFilter in lucene

2010-08-17 Thread Arun Rangarajan
I am trying to have multi-word synonyms work in lucene using Solr's * SynonymFilter*. I need to match synonyms at index time, since many of the synonym lists are huge. Actually they are really not synonyms, but are words that belong to a concept. For example, I would like to map {New York, Los