Natively Execute SOLR Queries within an app server.

2015-07-24 Thread Darin Amos
Hello, I have an application server that is running both the solr.war and a REST API war within the same JVM. Is it possible to query the SOLR instance natively (non-blocking) without connecting over HTTP? I could use EmbeddedSolrServer but I cannot create a second instance of my core. If I ca

Re: term frequency with stemming

2015-07-24 Thread Darin Amos
Hi Dale, I would think the coffee shop is better, I have in-laws visiting at home. Thanks Darin > On Jul 24, 2015, at 12:04 PM, Aki Balogh wrote: > > Hi All, > > I'm using TermVectorComponent and stemming (Porter) in order to get term > frequencies with fuzzy matching. I'm stemming at index

Re: Running SOLR 5.2.1 on Embedded Jetty

2015-07-24 Thread Darin Amos
approaches when I tinker. This doesn’t mean I would take the unconventional approach to production. Thanks! Darin > On Jul 23, 2015, at 7:54 PM, Shawn Heisey wrote: > > On 7/23/2015 3:14 PM, Darin Amos wrote: >> I have been trying to run the SOLR war with embedded Jetty and can’t

Running SOLR 5.2.1 on Embedded Jetty

2015-07-23 Thread Darin Amos
Hello, I have been trying to run the SOLR war with embedded Jetty and can’t seem to get the config quiet right. Is there any known documentation on this or is someone else doing this? I seem to just be setting up a document server at my solr.home directory. The code snippet below seems incomple

Multivalu field grouping

2015-03-04 Thread Darin Amos
Hi All, I sent an email out earlier but I didn’t get any responses so I thought I would try to reframe the question. I have a problem that I believe multivalued field grouping is the perfect answer for, of course since SOLR doesn’t support multivalued field grouping, I need to find an alterna

Grouping on multivalued fields. Alternative approaches?

2015-03-03 Thread Darin Amos
Hi All, I have read over and over that SOLR still does not support grouping on multivalued fields, however I have a requirement in which grouping on multi valued fields is the perfect solve for. Has anyone ever worked on a 3rd party library to do this, or is there any alternative ways to do t

Re: Is the QueryParser instance thread safe?

2014-12-15 Thread Darin Amos
pond to my emails, the last few weeks has been a good learning experience. Darin Amos Sent from my iPad > On Dec 15, 2014, at 5:35 PM, Mikhail Khludnev > wrote: > > Darin, > I hardly follows your approach. I can propose you to check a few materials, > just to sync termino

Re: Is the QueryParser instance thread safe?

2014-12-15 Thread Darin Amos
On Dec 15, 2014, at 3:45 PM, Mikhail Khludnev > wrote: > > Hello Darin, > > Let me try to answer below, > > On Mon, Dec 15, 2014 at 10:38 PM, Darin Amos wrote: >> >> Hello, >> >> I have a simple question, is an instance of the QueryParser created

Is the QueryParser instance thread safe?

2014-12-15 Thread Darin Amos
Hello, I have a simple question, is an instance of the QueryParser created for every single request and is that object thread safe? I will try not to get into too much of the specifics but I have a custom QueryParser and Search Component. Within my query parser when it is instantiated, I execu

Re: Help with a Join Query

2014-12-11 Thread Darin Amos
ess 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 > > ({!join from=parent to=id}color:red) AND ({!join from=parent > to=id}color:blue) ? > > 11.12.2014, 19:48, "Darin Am

Help with a Join Query

2014-12-11 Thread 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 one of my child documents has a single value field “color”. If I want to search all parents that have a “red” child, tis is very easy: {!join from

Custom Rollup (Join) Query

2014-12-08 Thread Darin Amos
Hello, I posted this question within another thread and I think it got lost so I wanted to start a new thread about it. I have built a small POC for a customization I am hoping to get some validation on in case what I have built is a really bad implementation. I have been doing a lot of digging

Re: Anti-Pattern in lucent-join jar?

2014-12-08 Thread Darin Amos
after noon). I have spent countless hours over the weekend continuing to try and learn the internals of SOLR and Lucene. Thanks Darin > On Dec 8, 2014, at 4:57 AM, Mikhail Khludnev > wrote: > > On Fri, Dec 5, 2014 at 10:44 PM, Darin Amos wrote: > >>

DocsEnum and TermsEnum "reuse" in lucene join library?

2014-12-05 Thread Darin Amos
Hi All, I have been working on a custom query and I am going off of samples in the lucene join library (4.3.0) and I am a little unclear about a couple lines. 1) When getting a TermsEnum in TermsIncludingScoreQuery.createWeight(…).scorer()… A previous TermsEnum is used like the following: seg

Re: Anti-Pattern in lucent-join jar?

2014-12-05 Thread Darin Amos
e > passing (or maybe not...?) > In my case, the relationships were across index segments, so I had to > collect them first - but in some other situations, when you look only at > the data inside one index segments, it _might_ be better to wait > > > > On Fri, Dec 5, 2014 at 1:

Re: Anti-Pattern in lucent-join jar?

2014-12-05 Thread Darin Amos
get >>> out of sync with the index, if eg it was saved for later use and ran >>> against newly opened searcher >>> >>> Roman >>> On 4 Dec 2014 10:51, "Darin Amos" wrote: >>> >>>> Hello All, >>>

Re: Anti-Pattern in lucent-join jar?

2014-12-05 Thread Darin Amos
segment keys, hence it exclude such leakage across different > searchers. > > On Fri, Dec 5, 2014 at 6:43 AM, Roman Chyla wrote: > >> +1, additionally (as it follows from your observation) the query can get >> out of sync with the index, if eg it was saved for later use and

Anti-Pattern in lucent-join jar?

2014-12-04 Thread Darin Amos
Hello All, I have been doing a lot of research in building some custom queries and I have been looking at the Lucene Join library as a reference. I noticed something that I believe could actually have a negative side effect. Specifically I was looking at the JoinUtil.createJoinQuery(…) method a

Re: SOLR Join Query, Use highest weight.

2014-12-02 Thread Darin Amos
wrote: > > Have you considered using grouping? If I understand your requirements, I > think it does what you want. > > https://cwiki.apache.org/confluence/display/solr/Result+Grouping > <https://cwiki.apache.org/confluence/display/solr/Result+Grouping> > > On 1

Re: SOLR Join Query, Use highest weight.

2014-12-02 Thread Darin Amos
owse/SOLR-6234> > > On Tue, Dec 2, 2014 at 4:35 AM, Darin Amos <mailto:dari...@gmail.com>> wrote: > >> Hello, >> >> I had sent an email a few days ago talking about implementing a custom >> rollup query component. I have changed directions a little b

SOLR Join Query, Use highest weight.

2014-12-01 Thread Darin Amos
Hello, I had sent an email a few days ago talking about implementing a custom rollup query component. I have changed directions a little bit because I have learned about the JoinQuery. I have an index that contains a combination of parent and child documents. The parent child relationship is a

Re: Trying to get ALL scores from a previous search in a custom search component ("last-components")

2014-11-28 Thread Darin Amos
rk from _indexed_ terms, which are already in memory. Two > different things. > > If I'm reading this right on a quick scan... > > Best > Erick > On Nov 28, 2014 10:21 AM, "Darin Amos" wrote: > >> Hi Eric, >> >> I am curious why this would

Re: Trying to get ALL scores from a previous search in a custom search component ("last-components")

2014-11-28 Thread Darin Amos
#x27;m all wet > > Best, > Erick > > On Thu, Nov 27, 2014 at 5:28 PM, Darin Amos wrote: >> Hello, >> >> I am trying to implement a Rollup Search component on a version of SOLR that >> exists previously to the parent/child additions, so I am trying

Trying to get ALL scores from a previous search in a custom search component ("last-components")

2014-11-27 Thread Darin Amos
Hello, I am trying to implement a Rollup Search component on a version of SOLR that exists previously to the parent/child additions, so I am trying to implement my own. The searches will be executed exclusively against the child documents, and I want to “rollup” those child documents into the p

Roll up query with original facets

2014-05-02 Thread Darin Amos
Hello All, I am having a query issue I cannot seem to find the correct answer for. I am searching against a list of items and returning facets for that list of items. I would like to group the result set on a field such as a “parentItemId”. parentItemId maps to other documents within the same c

Re: Roll up query with original facets

2014-05-01 Thread Darin Amos
rly difficult. > > > : Subject: Roll up query with original facets > : From: Darin Amos > : In-Reply-To: <1398953952.39792.yahoomail...@web124702.mail.ne1.yahoo.com > > > : Message-Id: <5902ae5b-7545-45d4-8662-a9700e1ec...@gmail.com> > : References: < > d625

Roll up query with original facets

2014-05-01 Thread Darin Amos
Hello All, I am having a query issue I cannot seem to find the correct answer for. I am searching against a list of items and returning facets for that list of items. I would like to group the result set on a field such as a “parentItemId”. parentItemId maps to other documents within the same c