Re: Parallelizing queries without Custom Component

2018-01-15 Thread Max Bridgewater
toring - Log Management - Alerting - Anomaly Detection > Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > > > > > On 15 Jan 2018, at 17:27, Max Bridgewater <max.bridgewa...@gmail.com> > wrote: > > > > Hi, > > > > My ind

Parallelizing queries without Custom Component

2018-01-15 Thread Max Bridgewater
Hi, My index is composed of product reviews. Each review contains the id of the product it refers to. But it also contains a rating for this product and the number of negative feedback provided on this product. { id: solr doc id, rating: number between 0 and 5, product_id: the product

Do I need to declare TermVectorComponent for best MoreLikeThis results?

2017-07-12 Thread Max Bridgewater
Hi, The MLT documentation says that for best results, the fields should have stored term vectors in schema.xml, with: My question: should I also create the TermVectorComponent and declare it in the search handler? In other terms, do I have to do this in my solrconfig.xml for best results?

MoreLikeThis Clarifications

2017-06-22 Thread Max Bridgewater
I am trying to confirm my understanding of MLT after going through following page: https://cwiki.apache.org/confluence/display/solr/MoreLikeThis. Three approaches are mentioned: 1) Use it as a request handler and send text to the MoreLikeThis request handler as needed. 2) Use it as a search

Re: Phrase Exact Match with Margin of Error

2017-06-15 Thread Max Bridgewater
> Parsers#OtherParsers-ComplexPhraseQueryParser. > See below for e.g. > > > > http://localhost:8983/solr/techproducts/select?debugQuery=on=on= > manu:%22Bridge%20the%20gat~1%20between%20your%20skills% > 20and%20your%20goals%22=complexphrase > > On Thu, Jun 15, 2017 at 5:59 AM, Ma

Phrase Exact Match with Margin of Error

2017-06-15 Thread Max Bridgewater
Hi, I am trying to do phrase exact match. For this, I use KeywordTokenizerFactory. This basically does what I want to do. My field type is defined as follows: In addition to this, I want to tolerate typos of two or three

Invoking a SerachHandler inside Solr Plugin

2017-04-11 Thread Max Bridgewater
I am looking for best practices when a search component in one handler, needs to invoke another handler, say /basic. So far, I got this working prototype: public void process(ResponseBuilder rb) throws IOException { SolrQueryResponse response = new SolrQueryResponse();

Re: Query.extractTerms dissapeared from 5.1.0 to 5.2.0

2017-02-01 Thread Max Bridgewater
Perfect. Thanks a lot. On Wed, Feb 1, 2017 at 2:01 PM, Alan Woodward <a...@flax.co.uk> wrote: > Hi, extractTerms() is now on Weight rather than on Query. > > Alan > > > On 1 Feb 2017, at 17:43, Max Bridgewater <max.bridgewa...@gmail.com> > wrote: > > >

Query.extractTerms dissapeared from 5.1.0 to 5.2.0

2017-02-01 Thread Max Bridgewater
Hi, It seems Query.extractTerms() disapeared from 5.1.0 ( http://lucene.apache.org/core/5_1_0/core/org/apache/lucene/search/Query.html) to 5.2.0 ( http://lucene.apache.org/core/5_2_0/core/org/apache/lucene/search/Query.html ). However, I cannot find any comment on it in 5.2.0 release notes. Any

Solr 6 Default Core URL

2016-12-13 Thread Max Bridgewater
I have one Solr core on my solr 6 instance and I can query it with: http://localhost:8983/solr/mycore/search?q=*:* Is there a way to configure solr 6 so that I can simply query it with this simple URL? http://localhost:8983/search?q=*:* Thanks. Max,

Re: Solr 6 Performance Suggestions

2016-11-28 Thread Max Bridgewater
hat assumption is true. > It's arguable > how much practical difference it makes though. > > Best, > Erick > > On Mon, Nov 28, 2016 at 2:14 AM, Florian Gleixner <f...@redflo.de> wrote: > > Am 28.11.2016 um 00:00 schrieb Shawn Heisey: > >> > >>

Re: Solr 6 Performance Suggestions

2016-11-25 Thread Max Bridgewater
Thanks folks. It looks like the sweet spot where I get comparable results is at 30 concurrent threads. It progressively degrades from there as I increases the number of concurrent threads in the test script. This made me think that something is configured in Tomcat ((Solr4) that is not

Solr 6 Performance Suggestions

2016-11-22 Thread Max Bridgewater
I migrated an application from Solr 4 to Solr 6. solrconfig.xml and schema.xml are sensibly the same. The JVM params are also pretty much similar. The indicces have each about 2 million documents. No particular tuning was done to Solr 6 beyond the default settings. Solr 4 is running in Tomcat

Re: Edismax query parsing in Solr 4 vs Solr 6

2016-11-12 Thread Max Bridgewater
sert the additional '+' flags, but it can also show up as a '~' > operator on the end. > > Ta, > Greg > > On 8 November 2016 at 22:13, Max Bridgewater <max.bridgewa...@gmail.com> > wrote: > > > I am migrating a solr based app from Solr 4 to Solr 6. One of the > > dis

Edismax query parsing in Solr 4 vs Solr 6

2016-11-08 Thread Max Bridgewater
I am migrating a solr based app from Solr 4 to Solr 6. One of the discrepancies I am noticing is around edismax query parsing. My code makes the following call: userQuery="+(title:shirts isbn:shirts) +(id:20446 id:82876)" Query query=QParser.getParser(userQuery, "edismax", req).getQuery();

BooleanQuery Migration from Solr 4 to SOlr 6

2016-07-18 Thread Max Bridgewater
HI Folks, I am tasked with migrating a Solr app from Solr 4 to Solr 6. This solr app is in essence a bunch of solr components/handlers. One part that challenges me is BooleanQuery immutability in Solr 6. Here is the challenge: In our old code base, we had classes that implemented custom

Determine Containing Handler

2016-05-19 Thread Max Bridgewater
Hi, I am implementing a component that needs to redirect calls to the handler that originally called it. Say the call comes to handler /search, the component would then do some processing and, alter the query and then send the query back to /search again. It works great. The only issue is that

Re: Function Query Parsing problem in Solr 5.4.1 and Solr 5.5.0

2016-04-02 Thread Max Bridgewater
Thank you Mike, that was it. Max. On Sat, Apr 2, 2016 at 2:40 AM, Mikhail Khludnev <mkhlud...@griddynamics.com > wrote: > Hello Max, > > Since it reports the first space occurrence pos=32, I advise to nuke all > spaces between braces in sum(). > > On Fri, Apr

Function Query Parsing problem in Solr 5.4.1 and Solr 5.5.0

2016-04-01 Thread Max Bridgewater
Hi, I have the following configuration for firstSearcher handler in solrconfig.xml: parts score desc, Review1 asc, Rank2 asc make {!func}sum(product(0.01,param1), product(0.20,param2), min(param2,0.4)) desc

Re: Load Resource from within Solr Plugin

2016-03-31 Thread Max Bridgewater
Hi Folks, Thanks for all the great suggestions. i will try and see which one works best. @Hoss: The WEB-INF folder is just in my dev environment. I have a localo Solr instance and I points it to the target/WEB-INF. Simple convenient setup for development purposes. Much appreciated. Max. On

Load Resource from within Solr Plugin

2016-03-29 Thread Max Bridgewater
HI, I am facing the exact issue described here: http://stackoverflow.com/questions/25623797/solr-plugin-classloader. Basically I'm writing a solr plugin by extending SearchComponent class. My new class is part of a.jar archive. Also my class depends on a jar b.jar. I placed both jars in my own