Adding information to Solr response in custom filter query code?

2016-05-16 Thread ruby
Is there a way to add a flag (or name value pair to Json resonse) in result being returned from Solr based on some security handling which happens in custom post filter code? How about if in custom post filter code I added the information to request context and then in a custom response builder, u

Re: Adding information to Solr response in custom filter query code?

2016-05-17 Thread ruby
Thanks for your reply. Is there any way a custom search component can access data created in custom post filter query so that the data can be added to the response? -- View this message in context: http://lucene.472066.n3.nabble.com/Adding-information-to-Solr-response-in-custom-filter-query-c

can custom search component access data in custom post filter component?

2016-05-17 Thread ruby
Is there any way a custom search component can access data created in custom post filter query component so that the data can be added to the response? -- View this message in context: http://lucene.472066.n3.nabble.com/can-custom-search-component-access-data-in-custom-post-filter-component-tp4

Using Solr invariants to set facet method?

2016-08-17 Thread ruby
Is it possible to use the invariants in Solr config to set facet.method to override what user is sending? enum -- View this message in context: http://lucene.472066.n3.nabble.com/Using-Solr-invariants-to-set-facet-method-tp4292142.html Sent from the Solr - User mailing list arc

Re: Using Solr invariants to set facet method?

2016-08-17 Thread ruby
Thanks for your reply. I was not seeing the param being added in return results. but after adding echoParams=true, I see that facet method is being added. -- View this message in context: http://lucene.472066.n3.nabble.com/Using-Solr-invariants-to-set-facet-method-tp4292142p4292149.html Sent f

Solr boost function taking precedence over relevance boosting

2016-11-08 Thread ruby
ange in the Solr date boost functions? If not, then is there something wrong with my query? Is my understanding of date boost function with relevancy boosting current? Thanks, Ruby -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-boost-function-taking-precedence-over-relev

Return only matched multi-valued field

2017-08-21 Thread ruby
Is there a way to return only the matched field from a multivalued field using filtering? -- View this message in context: http://lucene.472066.n3.nabble.com/Return-only-matched-multi-valued-field-tp4351494.html Sent from the Solr - User mailing list archive at Nabble.com.

Solr returning same object in different page

2017-09-12 Thread ruby
I'm running into a issue where an object is appearing twice when we are paging. My query is gives documents boost based on field values. First query returns 50 object. Second query is exactly same as first query, except getting next 50 objects. We are noticing that few objects which were returned b

Solr returning same object in different page

2017-09-12 Thread ruby
I'm running into a issue where an object is appearing twice when we are paging. My query is gives documents boost based on field values. First query returns 50 object. Second query is exactly same as first query, except getting next 50 objects. We are noticing that few objects which were returned b

Re: Solr returning same object in different page

2017-09-12 Thread ruby
Hi Shawn, No index change is happening in this case. -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Solr - google like suggestion

2017-09-13 Thread ruby
So I followed following article to enable google like suggestions in my application: https://lucidworks.com/2015/03/04/solr-suggester/ How do I control how many words are being returned ? Many thanks. -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Solr boost function taking precedence over relevance boosting

2017-10-04 Thread ruby
I have a usecase where: if a document has the search string in it's name_property field, then I want to show that document on top. If multiple document has the search string in it's name_property field then I want to sort them by creation date. Following is my query: q={!boost+b=recip(ms(NOW,crea

Solr boost property through request handler in solrconfig.xml

2017-10-19 Thread ruby
If I'm not using edismax or dismax, is there a way to boost a specific property through solrconfig.xml? I'm avoiding hard-coding boost in query. Following is my the request handler in solronfig.xml right now explicit 10 myFiled OR fc

Solr boost property through request handler in solrconfig.xml

2017-10-19 Thread ruby
If I'm not using edismax or dismax, is there a way to boost a specific property through solrconfig.xml? I'm avoiding hard-coding boost in query. Following is my the request handler in solronfig.xml right now explicit 10 myFiled OR fc

Solr boosting multiple fields using edismax parser.

2017-10-23 Thread ruby
If I want to boost multiple fields using Edismax query parser, is following the correct way of doing it: edismax field1:(apple)^500 field1:(orange)^400 field1:(pear)^300 field2:(4)^500 field2:(2)^100 recip(ms(NOW,mod_date),3.16e-11,1,1) recip(ms(NOW,creation_date),3.16e-11,1,1) And

Solr boosting multiple fields using edismax parser.

2017-10-23 Thread ruby
If I want to boost multiple fields using Edismax query parser, is following the correct way of doing it: edismax field1:(apple)^500 field1:(orange)^400 field1:(pear)^300 field2:(4)^500 field2:(2)^100 recip(ms(NOW,mod_date),3.16e-11,1,1) recip(ms(NOW,creation_date),3.16e-11,1,1) And

Re: Solr boosting multiple fields using edismax parser.

2017-10-23 Thread ruby
Thanks for your reply. can the recip function be used to boost a numeric field here: recip(ord(rating),100,1,1) -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Solr-Edismax boost a property

2017-10-24 Thread ruby
I'm new to edismax query parser. Trying to figure out how to boost a specific field over a copy fields. I want to show all documents for which the *object_name* property contains the search string first and then list all documents which has the value in FTS_CopyField and finally show the document

Solr-Edismax boost a property

2017-10-24 Thread ruby
I'm new to edismax query parser. Trying to figure out how to boost a specific field over a copy fields. I want to show all documents for which the *object_name* property contains the search string first and then list all documents which has the value in FTS_CopyField and finally show the document

Edismax - bq taking precedence over pf

2017-10-26 Thread ruby
I'm noticing in my following query bq= is taking precedence over pf. &q=Manufacturing &qf=Catch_all_Copy_field &pf=object_id^40+object_name^700 &bq=object_rating:(best)^10 &bq=object_rating:(candidate)^8 &bq=object_rating:(placeholder)^5 &bq=object_type_:(typeA)^10 &bq=object_type_:(typeB)^10 &bq=

Re: Edismax - bq taking precedence over pf

2017-10-26 Thread ruby
ok. Shouldn't pf be applied on top of bq=? that way among the object_types boosted, if one has "Manufacturing" then it should be listed first? following are my objects: 1 Configuration typeA Manufacturing <--catch all field where contents of all fields get copied to 2 Manufacturing typeA xy

Solr - phrase suggestion returning duplicate

2017-11-07 Thread ruby
I'm trying to enable phrase suggestion in my application by using *AnalyzingInfixLookupFactory *and *DocumentDictionaryFactory*. Following is what my configuration looks like: mySuggester AnalyzingInfixLookupFactory suggester_infix_dir DocumentDictionaryFactory title

Re: Solr - phrase suggestion returning duplicate

2017-11-07 Thread ruby
yes, id is an unique field. I found following issue in Jira: https://issues.apache.org/jira/browse/LUCENE-6336 It says affected versions are 4.10.3, 5.0. I'm using Solr 6.1 and seeing this issue. You can recreate it by indexing those documents I shared and querying. -- Sent from: http://lucen

Re: Solr - phrase suggestion returning duplicate

2017-11-07 Thread ruby
Yes, Id is an unique field in my schema. I found following Jira issue: https://issues.apache.org/jira/browse/LUCENE-6336 It looks related to me. It does not mention that it was fixed. Is it fixed in Solr 6.1? I'm using Solr 6.1 -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068

Re: Solr - phrase suggestion returning duplicate

2017-11-08 Thread ruby
Alessandro, thanks for your reply. What do you mean by "In case you decide to use an entire new index for the autosuggestion, you can potentially manage that on your own". Is this duplicate issue a problem with the DocumentDictionaryFactory? -- Sent from: http://lucene.472066.n3.nabble.com/S

Phrase suggester - field limit and order

2017-11-09 Thread ruby
I'm using the BlendedInfixLookupFactory to get phrase suggestions. It returns the entire field content. I've tried the others and they do the same. AnalyzingInfixSuggester BlendedInfixLookupFactory DocumentDictionaryFactory title price text_en Is there a way to only return a fracti

RE: Phrase suggester - field limit and order

2017-11-13 Thread ruby
thanks for your reply. I'm not seeing any documentation explaining exactly how the weightField is used. So, is it just a field which I define on each document and populate with some number during index. And during search it will be used to sort the suggestions? -- Sent from: http://lucene.47206

Search suggester - threshold parameter

2017-11-16 Thread ruby
Does the threshold parameter work with any of the phrase suggestion component? https://lucene.apache.org/solr/guide/6_6/suggester.html AnalyzingInfixSuggester BlendedInfixLookupFactory DocumentDictionaryFactory title price text_en *0.005* The wiki page does not mention

Search suggester - threshold parameter

2017-11-17 Thread ruby
Does any of the phrase suggesters in Solr 6.1 honor the threshold parameter? I made following changes to enable phrase suggestion in my environment. Played with different threshold values but looks like the parameter is not being used. mySuggester FuzzyLookupFactory suggester_fu

Solr suggester build takes a very long time

2017-12-11 Thread ruby
So when following command is run to build solr suggester: ?suggest.build=true It takes a very long time to finish. I found out that this is because each time dictionary is built, it does not build delta, it rebuilds the entire dictionary. Is there a way to speed up the suggester build time? TIA

Solr: edismax boost not working

2017-12-21 Thread ruby
I'm playing with following query but can't get the *object_desc* field boosted correctly. Maybe someone can tell me what I'm missing here: &wt=json&&defType=edismax&indent=on &q=object_name_NGRAM:video OR object_desc_NGRAM:video &qf=object_desc_NGRAM^10 object_name^2 field definition:

Re: Solr: edismax boost not working

2017-12-21 Thread ruby
Thanks that worked. But now if I want to search against 3 fields, can that be defined in solrconfig.xml? -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Solr admin client crash - caused by too many fields

2018-08-14 Thread ruby
Thanks for your answer. In previous Solr version (5.0) I had same number of fields and didn't run into this issue. Did anything change in Solr 6.0 above? Thanks -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Solr - how does faceting returned unstored values?

2018-01-05 Thread ruby
The Solr document states that the purpose of the stored attribute is to tell Solr to store the original text in the index somewhere. If that is true, then how is Solr able to return original texts when we facet on fields which are not stored? -- Sent from: http://lucene.472066.n3.nabble.com/S

Solr - Managed Resources REST API to get stopwords

2018-02-13 Thread ruby
I added following to my Solr schema: and then restarted Solr. Should following query return all stopwords? http://localhost/solr/collection/schema/analysis/stopwords/english I don't get an

Re: Solr - Managed Resources REST API to get stopwords

2018-02-14 Thread ruby
I was hoping to get back the list of stopwords which are defined in server\solr\collection\conf\lang\stopwords_en.txt file. So are you saying this REST api can't give me access to stopwords defined in this file? Is there a query which will give me stopwords defined in server\solr\collection\con

Solr - SpellCheckComponent Threshold parameter value not being honored.

2018-06-20 Thread ruby
I'm using the SpellCheckComponent to build term suggestions. It's working in most cases but for few words I am not seeing suggestions. There are around 14652 in total indexed. Out of them 856 documents start with the word "feq". When we search by "feq" we get results back but spellcheck does not re

Solr admin client crash - caused by too many fields

2018-08-10 Thread ruby
I have 60 thousand fields in schema. When I go to the Analysis page to analyze a field content http://localhost:8983/solr/#/collection1/analysis?analysis.fieldvalue=xyz&analysis.query=xyz&analysis.fieldname=field1&verbose_output=0 the admin panel crashes and shows error: Connection to Solr lost.

Solr admin client crash - caused by too many fields

2018-08-10 Thread ruby
I have 60 thousand fields in schema. When I go to the Analysis page to analyze a field content http://localhost:8983/solr/#/collection1/analysis?analysis.fieldvalue=xyz&analysis.query=xyz&analysis.fieldname=field1&verbose_output=0 the admin panel crashes and shows error: Connection to Solr lost.