Re: A different result with filters

2018-10-26 Thread Kydryavtsev Andrey
"error": { > "metadata": [ >   "error-class", >   "org.apache.solr.common.SolrException", >   "root-error-class", >   "org.apache.solr.parser.ParseException" > ], > "msg": "or

Re: A different result with filters

2018-10-26 Thread Kydryavtsev Andrey
This two queries are not similar. If you have parent with two children - "{condition_s:0, price_i: 100}" and "{condition_s:1, price_i: 10}", it will be matched by first query, it won't be matched by second. 26.10.2018, 09:50, "Владислав Властовский" : > Hi, I use 7.5.0 Solr > > Why

Re: Question on query time boosting

2018-08-23 Thread Kydryavtsev Andrey
Hi, Pratic I believe that your observations are correct. Score for each individual query (in your example it's wildcards query like 'concept_name:(*semantic*)^200') is calculated by a complex formulas (one of possible implementations with a good explanation is described here https://lucene.a

Re: 7.3 appears to leak

2018-07-04 Thread Kydryavtsev Andrey
If it is not possible to find a resource leak by code analysis and there is no better ideas, I can suggest a brute force approach: - Clone Solr's sources from appropriate branch  https://github.com/apache/lucene-solr/tree/branch_7_3 - Log every searcher's holder increment/decrement operation in a

Re: Spellcheck: using multiple dictionaries (DirectSolrSpellChecker and FileBasedSpellChecker)

2016-09-26 Thread Kydryavtsev Andrey
Hello, Ryan As it obvious from exception message - you are forced to use same instance of Analyzer to all of spell checkers which should be conjuncted. How this instance is initialized inside SpellChecker instance could be found  here - https://github.com/apache/lucene-solr/blob/master/solr/co

Re: Remove all parent docs having specific child doc

2015-02-20 Thread Kydryavtsev Andrey
> *q= - {!parent which=employee:*} department:Dept1 *-> it does not work with block join query parser. What do you mean? What this query (no spaces, brackets) ? q=-({!parent which=employee:*}department:Dept1) returns in your case? 20.02.2015, 18:02, "Mikhail Khludnev" : >  On Fri, Feb 20, 2015

Re: Block Join Query Parsers regular expression feature workaround req

2015-02-17 Thread Kydryavtsev Andrey
How about  find all parents which have at least one child with address:city1 and then "not" Like (not sure about syntax at all) q=-{!parent which=userid:*}address:city1 17.02.2015, 20:21, "Sankalp Gupta" : > Hi Mikhail, > > It won't solve my problem. > For ex: > Suppose my docs are like this: >

Re: Does DocValues improve Grouping performance ?

2015-01-31 Thread Kydryavtsev Andrey
31.01.2015, 23:23, "Michael Sokolov" : > On 1/31/2015 2:47 PM, Mikhail Khludnev wrote: >>  Michael, >> >>  Please check two questions inlined below > > Hi Mikhail, >>  On Sat, Jan 31, 2015 at 10:14 PM, Michael Sokolov < >>  msoko...@safaribooksonline.com> wrote: >> >>  You can only handle a singl

Re: Distinct Results from Solr Query

2015-01-19 Thread Kydryavtsev Andrey
Sounds like you need to develop your own post filter collector. In this collector you can get value for your field cat_id by document id, store it in collection and filter out documents which values are presented in this collection. It similar with http://lucidworks.com/blog/custom-security-fi

Re: questions about BlockJoinParentQParser

2014-12-17 Thread Kydryavtsev Andrey
For support scoreMode parameter in BlockJoinParentQParser we have this jira with attached patch https://issues.apache.org/jira/browse/SOLR-5882 17.12.2014, 06:54, "Michael Sokolov" : > I'm trying to use BJPQP and ran into a few little gotchas that I'd like > to share with y'all in case you have a

Re: Help with a Join Query

2014-12-11 Thread Kydryavtsev Andrey
http://blog.griddynamics.com/2013/09/solr-block-join-support.html 11.12.2014, 21:40, "Kydryavtsev Andrey" : > 11.12.2014, 21:24, "Darin Amos" : >>  Thanks, >> >>  That looks like a viable option, I could do something like the following: >> >>  q=

Re: Help with a Join Query

2014-12-11 Thread Kydryavtsev Andrey
these joins happening like this, what kind of performance concern is > this? I would guess this would start to cause a lot of work. > > Thanks > > Darin >>  On Dec 11, 2014, at 1:04 PM, Kydryavtsev Andrey wrote: >> >>  How about something like >> &

Re: Help with a Join Query

2014-12-11 Thread Kydryavtsev Andrey
How about something like ({!join from=parent to=id}color:red) AND ({!join from=parent to=id}color:blue) ? 11.12.2014, 19:48, "Darin Amos" : > Hello, > > I am trying to execute a join query that I am not 100% sure how to execute. > Lets say I have a bunch of parent and child documents and every

UnInvertedField implementation details

2014-10-13 Thread Kydryavtsev Andrey
Hi, I have a question about UnInvertedField internals. I use it for multi terms field faceting. And once got an exception "Too many values for UnInvertedField faceting on field ...". I googled it a bit (http://comments.gmane.org/gmane.comp.jakarta.lucene.solr.user/68000) and looked into the co

Re: Solr - Match whole word only in text fields

2013-12-26 Thread Kydryavtsev Andrey
Hi everybody! Ahmet, do I get it correct - if I use this text_char_norm field type, for input "myName=aaa bbb" I'll index terms "myName", "aaa", "bbb"? So I'll match with query like "myName" or query like "bbb", but not match with "myName aaa". I can use this type for query value, so split "my

Re: Chaining plugins

2013-12-26 Thread Kydryavtsev Andrey
If I get elmer fudd's question correct, he needs something like creating his own component which will extends SearchComponent and do some logic in prepare method - change input request params probably. Then register this component in solrconfig and set it's for default search handler just before

Re: Boosting results on value of field different from query

2013-12-26 Thread Kydryavtsev Andrey
Hi, Puneet I think you can try of provided advice from there : http://wiki.apache.org/solr/SolrRelevancyFAQ Like this one : http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_increase_the_score_for_specific_documents : set index time boos "per document", so set big boos for documents wit

Re: Getting Solr Document Attributes from a Custom Function

2013-12-11 Thread Kydryavtsev Andrey
? > > Can it be passed as a String array? > > Thanks & Regards > Mukund > > On Tue, Dec 10, 2013 at 12:05 PM, Kydryavtsev Andrey > wrote: > >>  You can implement it in this way: >>  Index number of cities as new int field (like >  name="numberOfCities&

Re: Getting Solr Document Attributes from a Custom Function

2013-12-09 Thread Kydryavtsev Andrey
You can implement it in this way: Index number of cities as new int field (like 2) and implement user function like "customFunction(price, numberOfCities, 1, 2000, 5)" Custom parser should parse this into value sources list. From first two field sources we can get per doc value for this part

Re: Use of Deprecated Classes: SortableIntField SortableFloatField SortableDoubleField

2013-12-09 Thread Kydryavtsev Andrey
ence/display/solr/Field+Type+Definitions+and+Properties 10.12.2013, 02:19, "O. Olson" : > Thank you kydryavtsev andrey. Could you please suggest some examples. There > is no documentation on this. Also is there a reason why these classes are > not used in the examples even though they

Re: Use of Deprecated Classes: SortableIntField SortableFloatField SortableDoubleField

2013-12-09 Thread Kydryavtsev Andrey
Javadoc for this deprecated classes suggest to use TrieIntField, TrieFloatField and TrieDoubleField respectively instead 10.12.2013, 01:19, "O. Olson" : > Use of Deprecated Classes: SortableIntField SortableFloatField > SortableDoubleField > > I am attempting to migrate from Solr 4.3 to Solr 4.6.

Re: Automatically build spellcheck dictionary on replicas

2013-12-03 Thread Kydryavtsev Andrey
gt; with the "spellcheck.build" parameter to build the spellchecker index. > > 2013/12/3 Kydryavtsev Andrey > >>  Did you try to add >>    true >>   parameter to your slave's spellcheck configuration? >> >>  03.12.2013, 12:04, "Mirko"

Re: Automatically build spellcheck dictionary on replicas

2013-12-03 Thread Kydryavtsev Andrey
Did you try to add true parameter to your slave's spellcheck configuration? 03.12.2013, 12:04, "Mirko" : > Hi all, > We use a Solr SpellcheckComponent with a file-based dictionary. We run a > master and some replica slave servers. To update the dictionary, we copy > the dictionary txt file to t

Re: In a functon query, I can't get the ValueSource when extend ValueSourceParser

2013-11-26 Thread kydryavtsev andrey
As your DateSourceParser is put in standardValueSourceParsers map with key "dateDeboost" (right?), I think you need specify name of your source like "dateDeboost(title)". 26.11.2013, 06:46, "sling" : > Thanks a lot for your reply, Chris. > > I was trying to sort the query result by the Datefunc