Re: How different is solr 4.7 from latest version.
Thanks Joe and Shawn. This is very useful information. @Joe, I need to upgrade and use synonym support of support. So I think I should better start with latest version. .Best, Srini Sampath. .Best, Srini Sampath On Fri, Jan 12, 2018 at 8:42 PM, Joe Heasly <jhea...@llbean.com> wrote: > Srini, > > We upgraded from Solr 4.6 to 6.4 last summer. There are fundamental > differences between those versions in the way the default Boolean operator > and 'minimum should match' functions interact. Here's an excellent > discussion of the change here (Jason Hellman does it more justice than I > could hope to): > > http://blog.innoventsolutions.com/innovent-solutions-blog/ > 2017/02/solr-edismax-boolean-query.html > > If you're just starting out and you're starting with a recent version, > this won't matter. But if you're upgrading, it's critical to be aware. > > Regards, > Joe > > { Joe Heasly | L.L.Bean, Inc. | [O] 207 552-2254 [M] 207 756-9250 } > > -Original Message- > From: Shawn Heisey [mailto:apa...@elyograg.org] > Sent: Friday, January 12, 2018 10:02 AM > To: solr-user@lucene.apache.org > Subject: Re: How different is solr 4.7 from latest version. > > On 1/12/2018 5:58 AM, srini sampath wrote: > > I am reading a book (Solr in action > > <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.amazon.in_So > > lr-2DAction-2DTrey-2DGrainger_dp_1617291021=DwICaQ=uC6H3HqR7J0hkle > > XqZF0oA=LGfOV9gkzZFmyXgI5jYqo5FeO_fORxZZyF8winHfJ8s=xoJLS_ZP0u4l7P > > AGZslEYaLCEBqnoJfoXeneaibCb-8=rPpw1EkXBvtuGGJXE7VSTHcgViWw_6X0Au7zZW > > Af4iw=>) to understand how to work with different features in solr. It > uses solr 4.7 to explain features. But I don't find any better material > (IMHO, documentation has many looped references which makes it too > difficult to understand for a newbie). > > > > Does it cover all the features related to new version (like important > > features) or is it better to follow some other resource? > > The latest version is 7.2, and the 7.2.1 release is being finalized now. > > That's three major versions newer. Most of the info in that book will > still be relevant, but there is quite a bit of new functionality. > > Here's the reference guide that is published as official documentation. > You can download this as a PDF using the "Other Formats" link at the top > of the page: > > https://urldefense.proofpoint.com/v2/url?u=https-3A__lucene. > apache.org_solr_guide_7-5F2_=DwICaQ=uC6H3HqR7J0hkleXqZF0oA= > LGfOV9gkzZFmyXgI5jYqo5FeO_fORxZZyF8winHfJ8s=xoJLS_ > ZP0u4l7PAGZslEYaLCEBqnoJfoXeneaibCb-8=ISiRaa2CCBrg1Y3ElGGY8_ > I0fCvSGGKiJGjU8TcsAas= > > Full disclosure: There isn't very much available for extreme beginners. > This lack is something the project is aware of, but writing documentation > for the uninitiated is a difficult task. The reference guide isn't awful, > but it could be a lot better. > > For differences between versions, there is the CHANGES.txt file included > in every download. The reference guide also has a section about big > differences from the previous major version. > > Thanks, > Shawn >
How different is solr 4.7 from latest version.
Hi, I am reading a book (Solr in action <https://www.amazon.in/Solr-Action-Trey-Grainger/dp/1617291021>) to understand how to work with different features in solr. It uses solr 4.7 to explain features. But I don't find any better material (IMHO, documentation has many looped references which makes it too difficult to understand for a newbie). Does it cover all the features related to new version (like important features) or is it better to follow some other resource? .Best, Srini Sampath.
Re: How to build solr
Thanks Atita, Sidana and Erick. @Atita, tried the procedure suggested here <http://www.gingercart.com/Home/search-and-crawl/build-and-run-solr-from-source> . But don't see any war file in the /extract_location/solr-6.6.1/solr/xxxsolr--SNAPSHOT.war directory after step #7 @Sidana, tried the procedure suggested here. <http://opensourceconnections.com/blog/2013/04/13/how-to-debug-solr-with-eclipse/> with small changes. But did not work. 1) Built eclipse target using $ant eclipse 2) Imported the solr eclipse project 3) Refresh project in eclipse 4) Built solr server $ant server 5) Started the server and listening on 7666 port 6) Started solr in debug mode 7) I see the following message in my cmd prompt. Any Idea? @Atita, Sidana. Could it be due to changes in version(might be missing many changes) from 4.x.x to 6.6.1. Please correct me if I am wrong. @Erick, 1> do you have ant installed? My guess is yes but thought I'd check #1.Yes, Ant is installed 2> what target are you executing? "ant server"? "ant dist"? ??? #2. I followed 2 different blogs and executing different targets on different src-code bundles. --> built ant dist <http://www.gingercart.com/Home/search-and-crawl/build-and-run-solr-from-source> --> built ant server <http://opensourceconnections.com/blog/2013/04/13/how-to-debug-solr-with-eclipse/> 3> the first time you execute an ant task you should see a message about a target to install "ivy", did you see it and did you follow it? #3. Earlier I did not include the ivy file in ant/lib directory. Now It is resolved. --- As I mentioned in my previous mail, I am working on *solrTextTagger feature <https://github.com/OpenSextant/SolrTextTagger/issues/67>*. And I want to know, How Can I debug my changes. I found similar problem here <http://lucene.472066.n3.nabble.com/Custom-processing-in-Solr-Request-Handler-plugin-and-its-debugging-td4077533.html>. How to pass the search request to different RequestHandler from within the custom RequestHandler and how to debug the custom RequestHandler plugin ? @Erick, tried the process mentioned by you on that thread. It did not work for me and could not understand where was it going wrong. Defined my custom handler in solrschema.xml Defined my custom handler jar file location location (solr-text-tagger.jar location) I made some changes to the solrTextTagger, And built a jar using maven. and enabled the Xdebug [image: Inline image 1] I am running solr as a service. And sending a request using HTTP Post method. It is working fine. But the problem is how can I debug solr-text-tagger.jar code to check and make changes. (How to do remote debugging?). It says no main manifest attribute. I would be glad if I can get solution specific to this issue. .Best, Srini Sampath On Fri, Sep 22, 2017 at 9:55 PM, Erick Erickson <erickerick...@gmail.com> wrote: > 1> do you have ant installed? My guess is yes but thought I'd check > 2> what target are you executing? "ant server"? "ant dist"? ??? > 3> the first time you execute an ant task you should see a message > about a target to install "ivy", did you see it and did you follow it? > That should install ivy-2.4.0.jar (or similar) in ./ant/lib > > Best, > Erick > > On Fri, Sep 22, 2017 at 3:11 AM, Sidana, Mohit > <mohit.sid...@wolterskluwer.com> wrote: > > Here's a very nice article on " How to Debug Solr With Eclipse" which I > have used previously to debug solr with eclipse. > > > > http://opensourceconnections.com/blog/2013/04/13/how-to- > debug-solr-with-eclipse/ > > > > > > -Original Message- > > From: Atita Arora [mailto:atitaar...@gmail.com] > > Sent: Friday, September 22, 2017 10:07 AM > > To: solr-user@lucene.apache.org > > Subject: Re: How to build solr > > > > http://www.gingercart.com/Home/search-and-crawl/build- > and-run-solr-from-source > > > > and follow thread > > > > http://lucene.472066.n3.nabble.com/running-solr-in- > debug-through-eclipse-td4159777.html > > > > to run solr server in debug mode through eclipse. > > > > Should give you some hint. > > > > Let me go through your error again to see , if I get some clue there. > > > > -Atita > > > > On Fri, Sep 22, 2017 at 11:41 AM, srini sampath < > sampathsrini.c...@gmail.com > >> wrote: > > > >> Thanks Aman, > >> Erick, I followed the link and I am getting the following error, > >> > >> B
Re: How to build solr
PS: I have Installed both Ant and Ivy in my system. But there is no ${user.home}\.ant\lib folder On Fri, Sep 22, 2017 at 11:41 AM, srini sampath <sampathsrini.c...@gmail.com > wrote: > Thanks Aman, > Erick, I followed the link and I am getting the following error, > > Buildfile: ${user.home}\git\lucene-solr\build.xml > > compile: > > -check-git-state: > > -git-cleanroot: > > -copy-git-state: > > git-autoclean: > > resolve: > > ivy-availability-check: > > BUILD FAILED > ${user.home}\git\lucene-solr\build.xml:309: The following error occurred > while executing this line: > ${user.home}\git\lucene-solr\lucene\build.xml:124: The following error > occurred while executing this line: > ${user.home}\git\lucene-solr\lucene\common-build.xml:424: > ${user.home}\.ant\lib does not exist. > > Total time: 0 seconds > > Any Idea? > How can I run solr server In debug mode. > > Here is the thing I am trying to do, > Change a custom plugin called solrTextTagger > <https://github.com/OpenSextant/SolrTextTagger>and add some extra query > parameters to it. > > I defined my custom handler in the following way > >- > > > >- And I defined my custom handler jar file location location in >solrschema.xml in the following way > > > (solr-text-tagger.jar > location) > >- I made some changes to the solrTextTagger, ><https://github.com/OpenSextant/SolrTextTagger> And built a jar using >maven. >- I am running solr as a service. And sending a request using HTTP >Post method. >- But the problem is how can I debug solr-text-tagger.jar code to >check and make changes. (I mean how to do remote debugging?) > > > I am using eclipse IDE for development. > I found similar problem here > <http://lucene.472066.n3.nabble.com/Custom-processing-in-Solr-Request-Handler-plugin-and-its-debugging-td4077533.html>. > But I could not understand the solution. > > .Best, > Srini Sampth. > > > > > > On Thu, Sep 21, 2017 at 8:51 PM, Erick Erickson <erickerick...@gmail.com> > wrote: > >> And did you follow the link provided on that page? >> >> Best, >> Erick >> >> On Thu, Sep 21, 2017 at 3:07 AM, Aman Tandon <amantandon...@gmail.com> >> wrote: >> > Hi Srini, >> > >> > Kindly refer to the READ.ME section of this link of GitHub, this should >> > work. >> > https://github.com/apache/lucene-solr/blob/master/README.md >> > >> > With regards, >> > Aman Tandon >> > >> > >> > On Sep 21, 2017 1:53 PM, "srini sampath" <sampathsrini.c...@gmail.com> >> > wrote: >> > >> >> Hi, >> >> How to build and compile solr in my locale machine? it seems the >> >> https://wiki.apache.org/solr/HowToCompileSolr page became obsolete. >> >> Thanks in advance >> >> >> > >
Re: How to build solr
Thanks Aman, Erick, I followed the link and I am getting the following error, Buildfile: ${user.home}\git\lucene-solr\build.xml compile: -check-git-state: -git-cleanroot: -copy-git-state: git-autoclean: resolve: ivy-availability-check: BUILD FAILED ${user.home}\git\lucene-solr\build.xml:309: The following error occurred while executing this line: ${user.home}\git\lucene-solr\lucene\build.xml:124: The following error occurred while executing this line: ${user.home}\git\lucene-solr\lucene\common-build.xml:424: ${user.home}\.ant\lib does not exist. Total time: 0 seconds Any Idea? How can I run solr server In debug mode. Here is the thing I am trying to do, Change a custom plugin called solrTextTagger <https://github.com/OpenSextant/SolrTextTagger>and add some extra query parameters to it. I defined my custom handler in the following way - - And I defined my custom handler jar file location location in solrschema.xml in the following way (solr-text-tagger.jar location) - I made some changes to the solrTextTagger, <https://github.com/OpenSextant/SolrTextTagger> And built a jar using maven. - I am running solr as a service. And sending a request using HTTP Post method. - But the problem is how can I debug solr-text-tagger.jar code to check and make changes. (I mean how to do remote debugging?) I am using eclipse IDE for development. I found similar problem here <http://lucene.472066.n3.nabble.com/Custom-processing-in-Solr-Request-Handler-plugin-and-its-debugging-td4077533.html>. But I could not understand the solution. .Best, Srini Sampth. On Thu, Sep 21, 2017 at 8:51 PM, Erick Erickson <erickerick...@gmail.com> wrote: > And did you follow the link provided on that page? > > Best, > Erick > > On Thu, Sep 21, 2017 at 3:07 AM, Aman Tandon <amantandon...@gmail.com> > wrote: > > Hi Srini, > > > > Kindly refer to the READ.ME section of this link of GitHub, this should > > work. > > https://github.com/apache/lucene-solr/blob/master/README.md > > > > With regards, > > Aman Tandon > > > > > > On Sep 21, 2017 1:53 PM, "srini sampath" <sampathsrini.c...@gmail.com> > > wrote: > > > >> Hi, > >> How to build and compile solr in my locale machine? it seems the > >> https://wiki.apache.org/solr/HowToCompileSolr page became obsolete. > >> Thanks in advance > >> >
How to build solr
Hi, How to build and compile solr in my locale machine? it seems the https://wiki.apache.org/solr/HowToCompileSolr page became obsolete. Thanks in advance
Re: Solr 4.3.1 - Spell-Checker with MULTI-WORD PHRASE
Hi all - please help me here On Thursday, July 21, 2016, SRINI SOLR <srini.s...@gmail.com> wrote: > Hi All - > Could you please help me on spell check on multi-word phrase as a whole... > Scenario - > I have a problem with solr spellcheck suggestions for multi word phrases. With the query for 'red chillies' > > q=red+chillies=xml=true=true=true=true > > I get > > > > 2 > 4 > 12 > 0 > > chiller4 > challis2 > > > false > red chiller > > > The problem is, even though 'chiller' has 4 results in index, 'red chiller' has none. So we end up suggesting a phrase with 0 result. > > What can I do to make spellcheck work on the whole phrase only? > > Please help me here ...
Solr 4.3.1 - Spell-Checker with MULTI-WORD PHRASE
Hi All - Could you please help me on spell check on multi-word phrase as a whole... Scenario - I have a problem with solr spellcheck suggestions for multi word phrases. With the query for 'red chillies' q=red+chillies=xml=true=true=true=true I get 2 4 12 0 chiller4 challis2 false red chiller The problem is, even though 'chiller' has 4 results in index, 'red chiller' has none. So we end up suggesting a phrase with 0 result. What can I do to make spellcheck work on the whole phrase only? Please help me here ...
Re: Sorl 4.3.1 - Does not load the new data using the Java application
Hi Upayavira / Team - Can you please explain in-detail - how to do the commit...? if we do the commit - Will the new data will be available to Java Application with-out calling *embeddedSolrServer.* *getCoreContainer().load()*. again. ...? Please help me here ... Thanks in Advance. On Thu, Jun 9, 2016 at 4:08 PM, Upayavira <u...@odoko.co.uk> wrote: > Are you executing a commit? > > You must commit before your content becomes visible. > > Upayavira > > On Thu, 9 Jun 2016, at 11:13 AM, SRINI SOLR wrote: > > Hi Team - > > Can you please help me out on the below issue ... > > > > We are using the Solr 4.3.1 version. > > > > Integrated Solr 4.3.1 with Java application using EmbeddedSolrServer. > > > > Using this EmbeddedSolrServer in java - loading the core container as > > below ... > > *embeddedSolrServer.getCoreContainer().load();* > > > > We are loading the container at the time of initiating the > > ApplicationContext. And now Java application is able to access the > > indexed > > data. > > > > *Now the issue is - * > > *If I index the new data in Solr - the same data is not getting loaded > > through Java application until and un-less if I again load the Core > > Container using **embeddedSolrServer.getCoreContainer().load().* > > > > Can you please help me out to on how to access the new data (which is > > indexed on Solr) using java application with out calling every-time > > *embeddedSolrServer.getCoreContainer().load().* > > > > *??? * > > > > *Please help me out ... I am stuck and not able to proceed further ... It > > is leading to critical issue ...* > > > > *Thanks In Advance.* >
Sorl 4.3.1 - Does not load the new data using the Java application
Hi Team - Can you please help me out on the below issue ... We are using the Solr 4.3.1 version. Integrated Solr 4.3.1 with Java application using EmbeddedSolrServer. Using this EmbeddedSolrServer in java - loading the core container as below ... *embeddedSolrServer.getCoreContainer().load();* We are loading the container at the time of initiating the ApplicationContext. And now Java application is able to access the indexed data. *Now the issue is - * *If I index the new data in Solr - the same data is not getting loaded through Java application until and un-less if I again load the Core Container using **embeddedSolrServer.getCoreContainer().load().* Can you please help me out to on how to access the new data (which is indexed on Solr) using java application with out calling every-time *embeddedSolrServer.getCoreContainer().load().* *??? * *Please help me out ... I am stuck and not able to proceed further ... It is leading to critical issue ...* *Thanks In Advance.*
Re: Filter query (fq) on comma seperated value does not work
Hi Ahmet / Team - Thanks for your quick response... Can you please help me out on this PatternTokenizer configuration... Here we are using configuration as below ... And also - I have made changes to the field value so that it is separated by space instead of commas and indexed the data as such... And now I was able to retrieve the expected results. But Still Can you help me out in achieving the results using the comma as you suggested. Thanks & Regards On Mon, May 16, 2016 at 5:50 PM, Ahmet Arslan <iori...@yahoo.com.invalid> wrote: > Hi, > > Its all about how you tokenize the category field. > It looks like you are using a string type, which does not tokenize at all > (e.g. verbatim) > Please use a PatterTokenizer and configure it so that it splits on comma. > > Ahmet > > > > On Monday, May 16, 2016 2:11 PM, SRINI SOLR <srini.s...@gmail.com> wrote: > Hi Team - > Can you please help me out on the following ... > > I have a following field in the solr document which has the comma seperated > values like below .. > > 1,456,768,345 doc1 > 456 doc2 > 1,456 doc3 > > So - Here I need to filter the search docs which contains category is > 456... > when i do like following ... > > fq=category:456 > > it is returning only one document doc2 which has only category is 456. > 456 > > But I need other two also which as this category 456 > > Can you please help me out to achieve this ... > > > Thanks & Regards >
Filter query (fq) on comma seperated value does not work
Hi Team - Can you please help me out on the following ... I have a following field in the solr document which has the comma seperated values like below .. 1,456,768,345 doc1 456 doc2 1,456 doc3 So - Here I need to filter the search docs which contains category is 456... when i do like following ... fq=category:456 it is returning only one document doc2 which has only category is 456. 456 But I need other two also which as this category 456 Can you please help me out to achieve this ... Thanks & Regards
Multi-word Synonyms Solr 4.3.1 does not work
Hi All - Can you please help me out on the multi-word synonyms with Solr 4.3.1. I am using the synonyms as below test1,test2 => movie1 cinema,movie2 cinema,movie3 cinema I am able to success with the above syntax like - if I search for words like test1 or test2 then right hand side multi-word values are shown. But - I have a synonyms like below - multi-word on both the side left-hand and right-hand... test1 test, test2 test, test3 test =>movie1 cinema,movie2 cinema,movie3 cinema With the above left-hand multi-word format - not working as expected means Here below is the configuration I am using on query analyzer ... Please Help me
EmbeddedSolrServer Loading Core Containers Solr 4.3.1
Hi Team - I am using Solr 4.3.1. We are using this EmbeddedSolrServer to load Core Containers in one of the java application. This is setup as a cron job for every 1 hour to load the new data on to the containers. Otherwise - the new data is not getting loaded on the containers , if we access from Java application even after re-indexing also. Please help here to resolve the issue ...?
want to subscribe
How to show Synopsis for textual description field
HI All, I have text filed which contains description for product. When user search for any word, I would like to show the synopsis for this field( which could be 2-3 lines). Can anyone give some hint? Thanks In Advance!!! Srini -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-show-Synopsis-for-textual-description-field-tp3986843.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: how to reduce the result size to 2-3 lines and expand based on user interest
hi iorixxx, Sorry I missed your reply. Let me put my requirement in another way. I have a description field which holds more text(2-3 para graphs) and it is indexed. When User search for any word, if solr finds that word in description I want to show the content probably 2-3 lines which matches the search word? Any ideas how to do this? Thanks in Advance!!! Srini -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-reduce-the-result-size-to-2-3-lines-and-expand-based-on-user-interest-tp3985692p3986727.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: how to reduce the result size to 2-3 lines and expand based on user interest
hI iorixxx, Just wondering if you have any suggestions!!! The other thing I tried using following url and the results returned same way as they were (no trimming of description to 300 chars). not sure if it is because of config file settings. http://localhost:8983/solr/browse?hl=truehl.fl=DESCRIPTIONhl.maxAnalyzedChars=0f.DESCRIPTION.hl.alternateField=DESCRIPTIONf.DESCRIPTION.hl.maxAlternateFieldLength=300 Thanks in Advance... Srini -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-reduce-the-result-size-to-2-3-lines-and-expand-based-on-user-interest-tp3985692p3985945.html Sent from the Solr - User mailing list archive at Nabble.com.
how to reduce the result size to 2-3 lines and expand based on user interest
I am using DIH to import data from Oracle and every thing is working fine. the description field usually contains more lines (from 10-300 lines). When I present the results through Solr/Browse It displays the results. However I have a requirement to show only 2-3 lines as description and provide some kind of link to expand the message if user is interested in reading it further. I am guessing I need to play around templates in velocity folder, Can anyone throw some light??? Thanks Srini -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-reduce-the-result-size-to-2-3-lines-and-expand-based-on-user-interest-tp3985692.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: how to reduce the result size to 2-3 lines and expand based on user interest
hi iorixxx, Thank you for your reply. Appreciate it. There are few areas I need little clarity. I am not using any queries. Every thing is been implemented as part of config files(schema.xml, data-config.xml, solr-config.xml). Could you give some more hints based on below config files specification. data-config.xml: entity name=xxx transformer=ClobTransformer query=select DESCRIPTION from xxx where ID=1000 schema.xml: field name=DESCRIPTION type=text_ws indexed=true stored=true/ copyField source=DESCRIPTION dest=text/ solrconfig.xml requestHandler name=/browse class=solr.SearchHandler lst name=defaults str name=mlt.flDESCRIPTION/str when I use solr/browse it does display description. I want this to be 300 char width and need to be in form of hyperlink so that user can read entire description by clicking link. -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-reduce-the-result-size-to-2-3-lines-and-expand-based-on-user-interest-tp3985692p3985747.html Sent from the Solr - User mailing list archive at Nabble.com.
how to join 3 tables to pull required data
I am having a situation where I need to join 3 tables to pull the required information. Can anyone throw me some ideas!!! select A.sid, B.cid, C.NAME from table1 A, table2 B, table3 C where A.sid= C.sid and A.oid = B.oid and C.typeid = 5 and C.flag = 0 and B.cid= 1000; Can you please provide schema file above requirement? -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-join-3-tables-to-pull-required-data-tp3985218.html Sent from the Solr - User mailing list archive at Nabble.com.
how to present html content in browse
I am indexing records from database using DIH. The content of my record is in html format. When I use browse I would like to show the content in html format, not in text format. Any ideas? -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-present-html-content-in-browse-tp3960327.html Sent from the Solr - User mailing list archive at Nabble.com.
how to limit solr indexing to specific number of rows
I am doing database import using solr DIH. I would like to limit the solr indexing to specific number. In other words If Solr reaches indexing 100 records I want to database import to stop importing. Not sure if there is any particular setting that would tell solr that I only want to import 100 rows from database and index those 100 records. I tried to give select query with ROMNUM=100 (using oracle) in data-config.xml, but it gave error. Any ideas!!! Thanks in Advance Srini -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-limit-solr-indexing-to-specific-number-of-rows-tp3960344.html Sent from the Solr - User mailing list archive at Nabble.com.
Difference between Search result from Admin console and solr/browse
I have imported my xml documents from oracle database and indexed them. When I search *:* in *admin console *I do get results. My xml format is not close to what solr expects. but still when I search for any word that is part of my xml document Solr displays whole xml document. for example if I search for word voicemail solr displays xml documents that has word voicemail Now when I go to solr/browse and give *:* I do see some thing but each result is like below (no data) even if i search for same word voicemail I am getting below. Can some body !!please Advice! Price: Features: In Stock there are only two things I can think off, one is settings in solrconfig.xml(like below). requestHandler name=/browse class=solr.SearchHandler lst name=defaults str name=echoParamsexplicit/str str name=wtvelocity/str str name=v.templatebrowse/str str name=v.layoutlayout/str str name=titleSolritas/str str name=dftext/str str name=defTypeedismax/str str name=q.alt*:*/str str name=rows10/str str name=fl*,score/str str name=mlt.qf text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 /str str name=mlt.fltext,features,name,sku,id,manu,cat/str int name=mlt.count3/int str name=qf text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 /str -- View this message in context: http://lucene.472066.n3.nabble.com/Difference-between-Search-result-from-Admin-console-and-solr-browse-tp3921323p3921323.html Sent from the Solr - User mailing list archive at Nabble.com.
Solr is not extracting the CDATA part of xml
I am trying to use method that is suggested in solr forum to remove CDATA part of xml. but it is not working. result show whole xml content instead of CDATA part. schema.xml fieldType name=text_ws2 class=solr.TextField positionIncrementGap=100 analyzer type=index tokenizer class=solr.WhitespaceTokenizerFactory/ charFilter class=solr.HTMLStripCharFilterFactory/ charFilter class=solr.MappingCharFilterFactory mapping=mappings.txt/ /analyzer /fieldType mappings.txt = my xml content body /body -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-is-not-extracting-the-CDATA-part-of-xml-tp3908317p3908317.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr is not extracting the CDATA part of xml
not sure why CDATA part did not get interpreted. this is how xml content looks like. I added quotes just to present the exact content xml content. body/body -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-is-not-extracting-the-CDATA-part-of-xml-tp3908317p3908341.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr is not extracting the CDATA part of xml
Erick, Thanks for your reply. when you say Solr does not index arbitery xml document, then below is the way my xml document looks like which is sitting in oracle. Could you suggest the best of indexing it ? which method should I follow? Should I use XPathEntityProcessor? ?xml version=1.0 encoding=UTF-8 ? message xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=someurl xmlns:csp=someurl.xsd xsi:schemaLocation=somelocation jar: id=002 message-type=create content dsp:row dsp:channel100/dsp:channel dsp:role115/dsp:role /dsp:row /body/content/message Thanks in Advance Erick Erickson wrote Solr does not index arbitrary XML content. There is and XML form of a solr document that can be sent to Solr, but it is a specific form of XML. An example of the XML you're trying to index and what you mean by not working would be helpful. Best Erick On Fri, Apr 13, 2012 at 11:50 AM, srini lt;softtech88@gt; wrote: not sure why CDATA part did not get interpreted. this is how xml content looks like. I added quotes just to present the exact content xml content. body/body -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-is-not-extracting-the-CDATA-part-of-xml-tp3908317p3908341.html Sent from the Solr - User mailing list archive at Nabble.com. Erick Erickson wrote Solr does not index arbitrary XML content. There is and XML form of a solr document that can be sent to Solr, but it is a specific form of XML. An example of the XML you're trying to index and what you mean by not working would be helpful. Best Erick On Fri, Apr 13, 2012 at 11:50 AM, srini lt;softtech88@gt; wrote: not sure why CDATA part did not get interpreted. this is how xml content looks like. I added quotes just to present the exact content xml content. body/body -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-is-not-extracting-the-CDATA-part-of-xml-tp3908317p3908341.html Sent from the Solr - User mailing list archive at Nabble.com. Erick Erickson wrote Solr does not index arbitrary XML content. There is and XML form of a solr document that can be sent to Solr, but it is a specific form of XML. An example of the XML you're trying to index and what you mean by not working would be helpful. Best Erick On Fri, Apr 13, 2012 at 11:50 AM, srini lt;softtech88@gt; wrote: not sure why CDATA part did not get interpreted. this is how xml content looks like. I added quotes just to present the exact content xml content. body/body -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-is-not-extracting-the-CDATA-part-of-xml-tp3908317p3908341.html Sent from the Solr - User mailing list archive at Nabble.com. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-is-not-extracting-the-CDATA-part-of-xml-tp3908317p3908791.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr is not extracting the CDATA part of xml
Thanks Again for quick reply. Little curious about the procedure you suggested. I thought of using same procedure as you suggested. Like writing a java program to fetch xml record from db and parse the content hand it to Solr for indexing. but what if my database content get changed? should I re run my java program to fetch xml and add to solr for re indexing? the content of xml format does not match to solr example xml formats. Any suggestions here? when I import xml records from oracle and add it to solr and search for a word, solr is displaying whole xml doc which has that word. what is wrong with this procedure( I do see my search word in the content of xml, only bad part is it is displaying whole doc instead CDATA part of it). Please suggest if there is better of doing this task other than SolrJ Thanks in Advance Srini -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-is-not-extracting-the-CDATA-part-of-xml-tp3908317p3908825.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr is indexing but not showing results
Hi Thanks for your reply. As per your suggestion I changed XML field type to text. field name=XML type=string indexed=true stored=true required=true/ but when I start solr it is throwing following exception. SEVERE: org.apache.solr.common.SolrException: Unknown fieldtype 'text' specified on field XML Any suggestions!!(Thanks for your reply) -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-is-indexing-but-not-showing-results-tp3897176p3897626.html Sent from the Solr - User mailing list archive at Nabble.com.