index join without query criteria

2020-06-08 Thread Hari Iyer
Hi,

It appears that a query criteria is mandatory for a join. Taking this example 
from the documentation: fq={!join from=id fromIndex=movie_directors 
to=director_id}has_oscar:true. What if I want to find all movies that have a 
director (regardless of whether they have won an Oscar or not)? This query: 
fq={!join from=id fromIndex=movie_directors to=director_id} fails. Do I just 
have to make up a dummy criteria like fq={!join from=id 
fromIndex=movie_directors to=director_id}id:[* TO *]?

Thanks,
Hari.



Transient core auto commit failure

2019-07-17 Thread Hari Iyer
Hi,
I am running solr 7.5.0 with a transient cache size of 20. I am bulk indexing 
multiple cores. I have auto commit setup and I see a few of these errors while 
indexing:

auto commit error...:org.apache.solr.common.SolrException: openNewSearcher 
called on closed core

I see log messages about cores being unloaded and loaded as expected in a 
transient setup.
I see there is a similar unresolved issue logged: 
https://jira.apache.org/jira/browse/SOLR-11378
I can only presume that in my case, the auto commit is being triggered on a 
core after it has been unloaded as part of the transient setting. 

Is it that auto commit should not be used for transient cores?
I presume this failure indicates that there are uncommitted changes and these 
cannot be recovered?
Thanks,
Hari.


Dynamic field rule plugin?

2015-08-28 Thread Hari Iyer
Hi,

I am new to Solr and am trying to create dynamic field rules in my Schema. 

I would like to use file name suffix to indicate other properties besides
the data type and multivalued as provided in the default schema. 

It appears that specifying this via a pattern leads to duplication as there
are various combinations that need to be specified here. It would help to
have code where I can build parts of the rule 

e.g. if suffix has '_s' then set stored=true

if suffix has '_m' then set multivalued=true

and so on

 

From the documentation and various implementation examples (drupal etc) I
can only see them specifying all combinations.

Is there any way (plugin?) to incrementally build the rule?

Thanks,

Hari