Chris, You shouldn't use File > New Project, which will run you through creating modules, etc.
Rather, you should use File > Open (in versions of IntelliJ prior to v12 this was File > Open Project), navigate in the directory navigation dialog that comes up to the *directory* containing Lucene and Solr (*not* a project file). I see on the wiki page this could be clearer - I'll try a reword there. Steve On Feb 28, 2013, at 5:53 AM, Chris Bamford <chris.bamf...@talktalk.net> wrote: > Hi guys, > > Still struggling with this I'm afraid :-( > I have now downloaded lucene_solr_4_1_0 and have run 'ant idea' and 'ant > generate-maven-artifacts'. > However, when I load the codebase into IntelliJ with File > New Project ... I > can see the code but am unable to right-click / Run any of the unit tests. I > am clearly missing a step or two, just not sure what! (My Project SDK is > correctly set to java 1.6.) > > Please can someone tell me what I need to do... > > Thanks > > - Chris > > > > > > > > > -----Original Message----- > From: Steve Rowe <sar...@gmail.com> > To: java-user@lucene.apache.org > Sent: Wed, 20 Feb 2013 16:57 > Subject: Re: More questions on BlockJoinQuery > > > Hi Chris, > > Sorry, the problem is that the IntelliJ and Maven support files are not > included > in Lucene source distributions. Also, both the IntelliJ and Maven > configurations assume you have Solr sources in addition to Lucene sources. > > The Solr 4.1 source distribution *does* contain these files, in addition to > the > Lucene and Solr sources - see <http://lucene.apache.org/solr/downloads.html>. > > > Alternatively, you can check out the 4.1 release tag from Subversion - this > also > has everything you'll need: > > svn checkout > http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_4_1_0 > > Steve > > You can get the required files by downloading > On Feb 20, 2013, at 11:45 AM, Chris Bamford <chris.bamf...@talktalk.net> > wrote: > >> >> Thanks Steve, sounds very useful. These are my steps: >> >> tar xzvf ~/Downloads/lucene-4.1.0-src.tgz >> cd lucene-4.1.0 >> ant >> ant idea >> >> This last step fails with: >> >> Buildfile: /Users/cbamford/projects/lucene-4.1.0/build.xml >> >> BUILD FAILED >> Target "idea" does not exist in the project "lucene". >> >> Total time: 0 seconds >> >> >> What have I done wrong? >> >> Thanks! >> >> - Chris >> >> >> >> -----Original Message----- >> From: Steve Rowe <sar...@gmail.com> >> To: java-user@lucene.apache.org >> Sent: Wed, 20 Feb 2013 16:29 >> Subject: Re: More questions on BlockJoinQuery >> >> >> Hi Chris, >> >> This mailing list is fine for discussing IntelliJ and Maven issues as they >> relate to Lucene. >> >> You'll need Ant v1.8.2+ to bootstrap things. >> >> 'ant idea' at the top level will produce an IntelliJ project you can open - > see >> <http://wiki.apache.org/lucene-java/HowtoConfigureIntelliJ> for more info. >> >> For some treatment of Maven issues, see dev-tools/maven/README.maven. >> >> Steve >> >> On Feb 20, 2013, at 10:48 AM, Chris Bamford <chris.bamf...@talktalk.net> > wrote: >> >>> >>> Thanks Mike. >>> I have downloaded the source tarball for 4.1.0 and have tried to get it >> working, but am having a few problems getting it to fit with my environment >> (intelliJ / Maven). >>> Where is the best forum to discuss such issues? >>> >>> Chris >>> >>> >>> >>> >>> >>> -----Original Message----- >>> From: Michael McCandless <luc...@mikemccandless.com> >>> To: java-user@lucene.apache.org >>> Sent: Tue, 12 Feb 2013 15:17 >>> Subject: Re: More questions on BlockJoinQuery >>> >>> >>> On Tue, Feb 12, 2013 at 7:43 AM, Chris Bamford >>> <chris.bamf...@talktalk.net> wrote: >>> >>>>> Could you please send this to the java-user@lucene.apache.org list? >>>> >>>> I thought I did! :-) Here it is again: >>> >>> Duh, my bad :) You are right! >>> >>> I saw the "Hi Mike" and stopped there! >>> >>> Responses below: >>> >>>> I have a question about your post "Searching relational content with > Lucene's >>>> BlockJoinQuery" >>>> (http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html). >>>> I am actually trying to use Lucene 4.0.0, so am having to translate your >>> example to >>>> the newer ToParentBlockJoinQuery / ToChildBlockJoinQuery APIs. I have had >>> some success, >>>> but my ultimate goal of combining the info from both child and parent hits > is >> >>> eluding >>>> me. I suspect I am missing something, but as yet haven't figured out >>>> what! >>>> >>>> In this scenario, let's say I have the following relationship: >>>> >>>> child 1 : ref:"100", content:"child 1", type:"C" >>>> child 2 : ref:"200", content:"child 2", type:"C" >>>> child 3 : ref:"300", content:"child 3", type:"C" >>>> parent : ref:"400", content:"parent", type:"P" >>>> >>>> When one or more children are hit, I want that to be noted against the >> parent, >>>> so ultimately I can create a result object like: >>>> >>>> Result{ ref:400, content:"parent", matches: [100, 300] } // children 1 & 3 >>>> were hit >>>> >>>> I have followed your example closely just replacing BlockJoinQuery with >>>> ToParentBlockJoinQuery and BlockJoinCollector with >>>> ToParentBlockJoinCollector. >>>> Unfortunately I seem to be able to get either: >>>> >>>> Just the parent objects (with td=s.search(q, 10)) or just the children >>>> (with > >>> the >>>> Collector), but not both! >>>> >>>> Am I to call search() twice (one returning TopDocs and the other GroupDocs >> via >>>> the Collector) and join them myself? Or does one of these calls return me >>> both >>>> types of documents, grouped and sorted? >>> >>> You should only call IndexSearcher.search once, but you should pass >>> your ToParentBlockJoinCollector instance IS.search(query, collector), >>> and then you call collector.getTopGroups to get the parent & children. >>> >>> Maybe have a look @ the unit test to get ideas? >>> >>> https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_4_1/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoin.java >>> >>> BTW you should upgrade to 4.1.0! >>> >>> Mike McCandless >>> >>> http://blog.mikemccandless.com >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org >>> For additional commands, e-mail: java-user-h...@lucene.apache.org >>> >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org >> For additional commands, e-mail: java-user-h...@lucene.apache.org >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org