How to check that solr server is running
i have implemented search in my E commerce application. which hit solr(running on port 8983) to get the search result solr url is *url =solrURL+"/solr/db/select/?qt=dismax&wt=json&&start="+start+"&rows="+end+"&q="+lowerCaseQuery+"&hl=true&hl.fl=text&hl.usePhraseHighlighter=true&sort= score desc ,"+sort+" "+order+"&json.wrf=?"* and using getJson i am getting the solr response. $.getJSON(url, function(result){ now my problem is how can i determine that solr server is running. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-check-that-solr-server-is-running-tp3193326p3193326.html Sent from the Solr - User mailing list archive at Nabble.com.
problem with "?" wild card searches in solr
I am using solr for search . i am facing problem with wildcard searches. when i search for dia?mond i get result for diamond but when i search for ban?le i get no result. what can be the problem - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/problem-with-wild-card-searches-in-solr-tp3193222p3193222.html Sent from the Solr - User mailing list archive at Nabble.com.
Problem in execution of error call in ajax request if solr server is not running
*$.ajax({ url: solrURL+"/solr/db/select/?qt=dismax&wt=json&&start="+start+"&rows="+end+"&q="+query+"&json.wrf=?", async:false, dataType: 'json', success: function(){ getSolrResponse(sort,order,itemPerPage,showPage,query,solrURL); } ,error:function(){ alert("there is an error"); } })* I have this ajax request, but even if solr url is not correct, than also error code is not executing, why so. please tell me the solution. i have tried with both async:false and async:true. in both cases error not called if server is shutdown - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Problem-in-execution-of-error-call-in-ajax-request-if-solr-server-is-not-running-tp3192962p3192962.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to find whether solr server is running or not
François Schiettecatte, how will i get 200 status code. I am getting json response from solr server, as *$.getJSON("http://192.168.1.9:8983/solr/db/select/?qt=dismax&wt=json&&start=0&rows=100&q="elegant"&hl=true&hl.fl=text&hl.usePhraseHighlighter=true&sort= score&json.wrf=?", function(result){ * but if solr server is not running this code does not execute...how can i check than that server is not running - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3184556.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to find whether solr server is running or not
But the problem is when solr server is not runing *"http://host:port/solr/admin/ping"* will not give me any json response then how will i get the status :( when i run this url browser gives me following error *Unable to connect Firefox can't establish a connection to the server at 192.168.1.9:8983.* - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3182202.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to find whether solr server is running or not
i am getting json response from solr as *$.getJSON("http://192.168.1.9:8983/solr/db/select/?qt=dismax&wt=json&&start=0&rows=100&q="elegant"&hl=true&hl.fl=text&hl.usePhraseHighlighter=true&sort= score&json.wrf=?", function(result){* how can i check whether i get response or not - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3181942.html Sent from the Solr - User mailing list archive at Nabble.com.
How to find whether solr server is running or not
I am running an application that get search results from solr server. But when server is not running i get no response from the server. Is there any way i can found that my server is not running so that i can give proper error message regarding it - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3181870.html Sent from the Solr - User mailing list archive at Nabble.com.
Problem in searching uppercase string with wildcard
Hello, I am using solr search. my search field contains both "diamond" and "Diamond". But when i search for Diamond/diamond it gives me correct results. But when i search for Diamond*/diamond*, I get result for diamond* but no results found for Diamond* . although i have applied . would you please suggest me what can be the issue. ----- Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Problem-in-searching-uppercase-string-with-wildcard-tp3151037p3151037.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Highlight whole query phrase
it is accidentally became elegant. anyway i got the solution without using hl.mergeContiguous , because its not working. look at http://jsfiddle.net/bhXbh/31/ for the solution - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Highlight-whole-query-phrase-tp3143797p3144575.html Sent from the Solr - User mailing list archive at Nabble.com.
How to match for more than one value in a string using regex match
Hi i want to highlight whole gold ring for this i am doing as *var match = hitem.text[0].match(/(.*?)<\/em>/); where hitem.text[0]=Gold Ring * but the problem is var match is getting only Gold so i am able to highlight only Gold, i want to make it an array so that it contains both gold and ring, how can i do it. look at here http: http://jsfiddle.net/bhXbh/4/ - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-match-for-more-than-one-value-in-a-string-using-regex-match-tp3144199p3144199.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Highlight whole query phrase
I included hl.mergeContiguous parameter. in my url but no effect on search result highlighting. actually i need to parse highlighting property. please look at http://jsfiddle.net/bhXbh/4/ - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Highlight-whole-query-phrase-tp3143797p3144157.html Sent from the Solr - User mailing list archive at Nabble.com.
Highlight whole query phrase
i am using solr for search and i implemented highlighting feature for my search results. when i my search string is ring it highlight ring but when search string is "gold ring" than also it highlight only gold, where i wanted to highlight whole gold ring for highlighting i use description field which i got as * highlighting ={ "8252": { "text": [ " and goldRing design was finely crafted in Japan." ] }, "8142": { "text": [ "This elegant Ring has an Akoya cultured pearl with a band of bezel-set round diamonds making" ] } };* Now i am parsing it as * $.each(newresult.response.docs, function(i,item){ var word = highlight[item["UID_PK"]]; var result=""; var j=0; for (j=0 ;j<=item.text.length;j++) { result = result+item.text[j]+""; } result=result.replace(word,'' + word + ''); }); * Now how should i parse so that i got gold ring highlighted - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Highlight-whole-query-phrase-tp3143797p3143797.html Sent from the Solr - User mailing list archive at Nabble.com.
problem in spellchecker working with dismax requesthandler
Hi, In my solr search previously i was using standard request handler than spellchecker was working fine. now i configured search to dismax request handler. But now spellchecker is not working. would you please tell me what can be the problem Thanks - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/problem-in-spellchecker-working-with-dismax-requesthandler-tp3143662p3143662.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to boost a querystring at query time
than what should i do to get the required result. ie. if i want to boost gold than which querytype i should use. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-boost-a-querystring-at-query-time-tp3139800p3140703.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: configure dismax requesthandlar for boost a field
I got the point that to boost search result i have to sort by score. But as in solrconfig for dismax request handler i use * text^0.5 name^1.0 description^1.5 * because i want docs having querystring in description field come upper in search results. but what i am getting is first doc in search result which does not have querystring in its description field. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/configure-dismax-requesthandlar-for-boost-a-field-tp3137239p3140501.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: configure dismax requesthandlar for boost a field
will merely adding fl=score make difference in search results, i mean will i get desired results now??? - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/configure-dismax-requesthandlar-for-boost-a-field-tp3137239p3139814.html Sent from the Solr - User mailing list archive at Nabble.com.
How to boost a querystring at query time
i want to enable boosting for query and search results. My dismax queryHandlerConfiguration is as: * explicit dismax 0.01 text^0.5 name^1.0 description^1.5 UID_PK,name,price,description,score 2<-1 5<-2 6<90% 100 *:* 0 name regex * When querystring is q=gold^2.0 ring(boost gold) and qt=standard i got the results for gold ring and when qt=dismax i got no result why so please explain - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-boost-a-querystring-at-query-time-tp3139800p3139800.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: configure dismax requesthandlar for boost a field
I am not returning score for the queries. as i suppose it should be reflected in search results. means doc having query string in description field come higher than the doc having query string in name field. And yes i restarted solr after making changes in configuration. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/configure-dismax-requesthandlar-for-boost-a-field-tp3137239p3139680.html Sent from the Solr - User mailing list archive at Nabble.com.
configure dismax requesthandlar for boost a field
I want to apply boost for searching. i want that if a query term occur both in description,name than docs having query term in description field come high in search results. for this i configure dismax request handler as: * explicit 0.01 text^0.5 name^1.0 description^1.5 UID_PK,name,price,description 2<-1 5<-2 6<90% 100 *:* 0 name regex * But i am not finding any effect in my search results. do i need to do some more configuration to see the effect. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/configure-dismax-requesthandlar-for-boost-a-field-tp3137239p3137239.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Problem in including both clustering component and spellchecker for solr search results at the same time
Markus, i did like it * default true false 1 default true false 1 * I hope i have done things correctly. But when i run solr server i am getting exception *org.apache.solr.common.SolrException: Unknown Search Component: clusteringComponent* - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Problem-in-including-both-clustering-component-and-spellchecker-for-solr-search-results-at-the-same-e-tp3128864p3136756.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: MergerFactor and MaxMergerDocs effecting num of segments created
Shawn when i reindex data using full-import i got: *_0.fdt 3310 _0.fdx 23 _0.frq 857 _0.nrm 31 _0.prx 1748 _0.tis 350 _1.fdt 3310 _1.fdx 23 _1.fnm 1 _1.frq 857 _1.nrm 31 _1.prx 1748 _1.tii 5 _1.tis 350 segments.gen1 segments_3 1* Where all _1 marked as archived(A) And when i run again full import(for testing ) i got _1 and 2_ files where all 2_ marked as archive. What does it mean. and the problem i am not getting is while i am doing full import which deletes the old indexes and creates new than why i m getting the old one again. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/MergerFactor-and-MaxMergerDocs-effecting-num-of-segments-created-tp3128897p3136664.html Sent from the Solr - User mailing list archive at Nabble.com.
Problem facing while querying for wild card queries
I am using solr for indexing and searching in my application. I am facing some strange problem while querying wild card When i search for di?mo?d, i get results for diamond but when i search for diamo?? i get no results.What could be the reason please tell. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Problem-facing-while-querying-for-wild-card-queries-tp3128983p3128983.html Sent from the Solr - User mailing list archive at Nabble.com.
MergerFactor and MaxMergerDocs effecting num of segments created
My indexes are these, i want to see the effect of merge factor and maxmerge docs. on These indexes how can i do it. * _0.fdt 3310 KB _0.fdx 23 KB _0.fnm 1 KB _0.frq 857 KB _0.nrm 31 KB _0.prx 1748 KB _0.tii 5 KB _0.tis 350 Kb* I mean what test cases for mergefactor and maxmergedoc i can run to see the effect on indexed files. current configuration is: * 2 10* - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/MergerFactor-and-MaxMergerDocs-effecting-num-of-segments-created-tp3128897p3128897.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Problem in including both clustering component and spellchecker for solr search results at the same time
would you please give me an example for custom request handler - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Problem-in-including-both-clustering-component-and-spellchecker-for-solr-search-results-at-the-same-e-tp3128864p3128893.html Sent from the Solr - User mailing list archive at Nabble.com.
Problem in including both clustering component and spellchecker for solr search results at the same time
I want to include both clustering and spellchecker in my search results. but at a time i am able to include only one. Only one, with which i am setting default=true. than how can i include both clustering and spellchecker both for my results. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Problem-in-including-both-clustering-component-and-spellchecker-for-solr-search-results-at-the-same-e-tp3128864p3128864.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: MergerFacor effect on indexes
To see the changes i am deleting my old indexes and recreating them but still getting the same result :( - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/MergerFacor-effect-on-indexes-tp3125146p3128432.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to optimize solr indexes
when i run as : deltaimport?command=delta-import&optimize=false But i am still getting optimize=true when i look at admin console which is in my original post - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-optimize-solr-indexes-tp3125293p3128424.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to optimize solr indexes
and if i want to set it as optimize=false then what i need to do ?? - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-optimize-solr-indexes-tp3125293p3125474.html Sent from the Solr - User mailing list archive at Nabble.com.
How to optimize solr indexes
when i run solr/admin page i got this information, it shows optimize=true, but i have not set optimize=true in configuration file than how it is optimizing the indexes. and how can i set it to false then . /Schema Information Unique Key: UID_PK Default Search Field: text numDocs: 2881 maxDoc: 2881 numTerms: 41960 version: 1309429290159 optimized: true current: true hasDeletions: false directory: org.apache.lucene.store.SimpleFSDirectory:org.apache.lucene.store.SimpleFSDirectory@ C:\apache-solr-1.4.0\example\example-DIH\solr\db\data\index lastModified: 2011-06-30T10:25:04.89Z/ - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-optimize-solr-indexes-tp3125293p3125293.html Sent from the Solr - User mailing list archive at Nabble.com.
How to use solr clustering to show in search results
wanted to use clustering in my search results, i configured solr for clustering and i got following json for clusters. But i am not getting how to use it to show in search results. as corresponding to one doc i have number of fields and up till now i am showing name, description and id. now in clusters i have labels and doc id. then how to use my docs in clusters, i am really confused what to do Please reply. * "clusters":[ { "labels":[ "Complement any Business Casual or Semi-formal Attire" ], "docs":[ "7799", "7801" ] }, { "labels":[ "Design" ], "docs":[ "8252", "7885" ] }, { "labels":[ "Elegant Ring has an Akoya Cultured Pearl" ], "docs":[ "8142", "8139" ] }, { "labels":[ "Feel Amazing in these Scintillating Earrings Perfect" ], "docs":[ "12250", "12254" ] }, { "labels":[ "Formal Evening Attire" ], "docs":[ "8151", "8004" ] }, { "labels":[ "Pave Set" ], "docs":[ "7788", "8169" ] }, { "labels":[ "Subtle Look or Layer it or Attach" ], "docs":[ "8014", "8012" ] }, { "labels":[ "Three-stone Setting is Elegant and Fun" ], "docs":[ "8335", "8337" ] }, { "labels":[ "Other Topics" ], "docs":[ "8038", "7850", "7795", "7989", "7797" ] { ]* - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-use-solr-clustering-to-show-in-search-results-tp3125149p3125149.html Sent from the Solr - User mailing list archive at Nabble.com.
MergerFacor effect on indexes
my solrconfig.xml configuration is as : false 32 5 10 1 false my solrconfig.xml configuration is as : * false 32 5 10 1 false * and index size is 12mb. but when i change my mergeFactor i am not finding any effect in my indexes., ie. the no of segments are exactly same. i am not getting which configuration will effect the no of segments. as i suppose it is mergefactor. and my next problem is which configuration defines the number of docs per segments and what will be the size of this segment so that next segments will be created please make me clear about these points - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/MergerFacor-effect-on-indexes-tp3125146p3125146.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: what is solr clustering component
thanks iorixxx, i changed my configuration to include clustering in search results. in my xml format search results i got a tag , to show this clusters in to search results do i need to parse this xml. and my second question is does clustering effect indexes. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/what-is-solr-clustering-component-tp3121484p3124627.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: filters effect on search results
admin/analysis.jsp page shows RemoveDuplicatesTokenFilterFactory ,ReversedWildcardFilterFactory ,.EnglishPorterFilterFactory - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/filters-effect-on-search-results-tp3120968p3121506.html Sent from the Solr - User mailing list archive at Nabble.com.
what is solr clustering component
I just went through solr wiki page for clustering. But i am not getting what is the benefit of using clustering. Can anyone tell me what is actually clusering and what its use in indexing and searching. does it effect search results?? Please reply - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/what-is-solr-clustering-component-tp3121484p3121484.html Sent from the Solr - User mailing list archive at Nabble.com.
filters effect on search results
Hi, when i query for "elegant" in solr i get results for "elegance" too. *I used these filters for index analyze* WhitespaceTokenizerFactory StopFilterFactory WordDelimiterFilterFactory LowerCaseFilterFactory SynonymFilterFactory EnglishPorterFilterFactory RemoveDuplicatesTokenFilterFactory ReversedWildcardFilterFactory * and for query analyze:* .WhitespaceTokenizerFactory SynonymFilterFactory StopFilterFactory WordDelimiterFilterFactory LowerCaseFilterFactory EnglishPorterFilterFactory RemoveDuplicatesTokenFilterFactory I want to know which filter affecting my search result. ----- Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/filters-effect-on-search-results-tp3120968p3120968.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Include synonys in solr
Thanks François Schiettecatte, information you provided is very helpful. i need to know one more thing, i downloaded one of the given dictionary but it contains many files, do i need to add all this files data in to synonyms.text ?? - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Include-synonyms-in-solr-tp3116836p3117733.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Include synonys in solr
I don't want to add all dictionary words to my synonyms.txt, but i wanted to include synonyms for the words which i am having in my data...as you can imagine if i have suppose 1000 words then i would be very tough to enter synonyms for these 1000 words in synonyms.txt manually. I just want to know how can i solve this puzzle so that i need not to enter synonyms manually. for example for GB i am entering gigabyte for ring i am entering synonyms as band, circle - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Include-synonyms-in-solr-tp3116836p3117373.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Include synonys in solr
Please see http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.SynonymFilterFactory No offence, but a simple Google search, or a search of the Wiki would have turned this up. Please try such simpler avenues before dashing off a message to the list. Gora, I heve already read the document and also included synonyms in my search results :) My question is , when i use this * * i need to enter synonyms manually in synonyms.txt. which is really tough if you have many words for synonyms. i wanted to ask is there any other option so that i need not to enter synonyms manually.. i hope you got my point :) - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Include-synonyms-in-solr-tp3116836p3117365.html Sent from the Solr - User mailing list archive at Nabble.com.
Include synonys in solr
Hi, i am using solr for my searches. in this i found a synonyms.text file in which you can include synonyms manually for the words u want. But as i suppose it would be very hard to include synonyms manually for each word as my application has large data. I want to know is there any way that this synonym.text file generate automatically referring to all dictionary words - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Include-synonys-in-solr-tp3116836p3116836.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: how to index data in solr form database automatically
Can i not use it for full-import ?? - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-index-data-in-solr-form-database-automatically-tp3102893p3113002.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: how to index data in solr form database automatically
Thanks for answering but i don't know how to write script for fetching data from database and index it in to solr and how to setup this script as cron-job to run automatically at certain interval. Please suggest . - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-index-data-in-solr-form-database-automatically-tp3102893p3112772.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: how to index data in solr form database automatically
would you please tell me how can i use Cron for auto index my database tables in solr - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-index-data-in-solr-form-database-automatically-tp3102893p3103768.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: how to index data in solr form database automatically
Yeah i am using data-import to get data from database and indexing it. but what is cron can you please provide a link for it - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-index-data-in-solr-form-database-automatically-tp3102893p3103072.html Sent from the Solr - User mailing list archive at Nabble.com.
how to index data in solr form database automatically
I have MySql database for my application. i implemented solr search and used dataimporthandler(DIH)to index data from database into solr. my question is: is there any way that if database gets updated then my solr indexes automatically gets update for new data added in the database. . It means i need not to run index process manually every time data base tables changes.If yes then please tell me how can i achieve this. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-index-data-in-solr-form-database-automatically-tp3102893p3102893.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Conflict in wildcard query and spellchecker in solr search
how can I lowercase query outside of Solr before sending a query? - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Conflict-in-wildcard-query-and-spellchecker-in-solr-search-tp3095198p3095345.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Conflict in wildcard query and spellchecker in solr search
* * I am using this fieldtype and applied these filters. for wildcard searches do i need to include some more filters or what other configurations are needed - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Conflict-in-wildcard-query-and-spellchecker-in-solr-search-tp3095198p3095290.html Sent from the Solr - User mailing list archive at Nabble.com.
Conflict in wildcard query and spellchecker in solr search
Using solr search when i search for rin* it run wildcard query and i get the result for ring but when i search for Rin* it run spellchecker and then gives the result for ring. why so ?? please explain - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Conflict-in-wildcard-query-and-spellchecker-in-solr-search-tp3095198p3095198.html Sent from the Solr - User mailing list archive at Nabble.com.
Problem in accessing a variable's changed value outside of if block in javascript code
*$("#submit").click(function(){ var query=getquerystring() ; //get the query string entered by user // get the JSON response from solr server var newquery=query; $.getJSON("http://192.168.1.9:8983/solr/db/select/?wt=json&&start=0&rows=100&q="+query+"&json.wrf=?";, function(result){ //$.each(result.response.docs, function(result){ if(result.response.numFound==0) { $.getJSON("http://192.168.1.9:8983/solr/db/select/?wt=json&&start=0&rows=100&q="+query+"&spellcheck=true&json.wrf=?";, function(result){ $.each(result.spellcheck.suggestions, function(i,item){ newquery=item.suggestion; }); }); }* favorite $("#submit").click(function(){ var query=getquerystring() ; //get the query string entered by user // get the JSON response from solr server var newquery=query; $.getJSON("http://192.168.1.9:8983/solr/db/select/?wt=json&&start=0&rows=100&q="+query+"&json.wrf=?";, function(result){ //$.each(result.response.docs, function(result){ if(result.response.numFound==0) { $.getJSON("http://192.168.1.9:8983/solr/db/select/?wt=json&&start=0&rows=100&q="+query+"&spellcheck=true&json.wrf=?";, function(result){ $.each(result.spellcheck.suggestions, function(i,item){ newquery=item.suggestion; }); }); } In the above javascript code a variable newquery initialy having value of query. but when the if condition is true its value have changed. but my problem is i am not getting its changed value outside of if block while i want this changed value. how can i do this. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Problem-in-accessing-a-variable-s-changed-value-outside-of-if-block-in-javascript-code-tp3094342p3094342.html Sent from the Solr - User mailing list archive at Nabble.com.
problem with wild card query with spellchecker
I am enabling spell checking using solr in search application. i also want to run wild card queries. the problem i am facing is when i search for for example diam* then it gives me a suggestion for diamond and search results for diamond. while i have some other words in my document say for example diamender,diamounder but i am not getting results for them cant i use wild card query with spell checker?? - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/problem-with-wild-card-query-with-spellchecker-tp3090651p3090651.html Sent from the Solr - User mailing list archive at Nabble.com.
Parse solr json object
Hi, for enabling highlighting i want to parse json object. for readilibility i included xml format of that json object. please tell me how should i parse this object using $.each("", function(i,item){ so that i could get highlighted result. − − − These elegant and fluid earrings have six round prong-set and twenty-six faceted briolette − − − These elegant and fluid earrings have six round prong-set and twenty-six faceted briolette - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Parse-solr-json-object-tp3089470p3089470.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to highlight a field in searchresult using solr
Jan Høydahl / Cominvent, without parsing json object for i am able to show the result just using the url with hl=true and hl.fl="somefield". and i got the field highlighted. but what i want is to highlight only data i pass in the query ,in that "somefield" not full field data. How can i do this. Thanks ----- Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-highlight-a-field-in-searchresult-using-solr-tp3086301p3089374.html Sent from the Solr - User mailing list archive at Nabble.com.
How to highlight a field in searchresult using solr
Hi, I want to include highlighting feature in my search application using solr. I did necessary changes in config file for highlighting feature. when i run the url with hl=true&hl.fl=somefield i got the . now i want to display these highlighted fields in my search.jsp page. To display the search result i am getting solr json object as $.getJSON("http://192.168.1.9:8983/solr/db/select/?wt=json&&start=0&rows=20&q="diamond"&hl=true&hl.fl=name&json.wrf=?";, function(result){ and by parsing it displaying the result. my question is do i need to parse tag separately or it will highlight the hl.fl=name automatically Thanks Romi - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-highlight-a-field-in-searchresult-using-solr-tp3086301p3086301.html Sent from the Solr - User mailing list archive at Nabble.com.
Request handle solrconfig.xml Spellchecker
I am trying to set up spellchecker, according to solr documentation. But when I am testing, I don't have any suggestion. My piece of code follows: textSpell solr.IndexBasedSpellChecker default name ./spellchecker explicit default false false 1 spellcheck i build the dictionary as http://localhost:8983/solr/select/?q=*:*&spellcheck=true&spellcheck.build=true but when i run the query i am not getting any suggestion http://localhost:8983/solr/select?q=komputer&spellcheck=true - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Request-handle-solrconfig-xml-Spellchecker-tp3085053p3085053.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr highliting feature
yes, I find title in section. If i am getting results say by parsing json object then do i need to parse ? - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/solr-highliting-feature-tp3079239p3084890.html Sent from the Solr - User mailing list archive at Nabble.com.
solr highliting feature
I want to highlight some search result value. i used solr for this. as i suppose solr provides highlighting feature. i used it i configure highlighting in solr-config.xml. i set hl="true" and hl.fl="somefield" at query time in my url when i run the url it gives me a xml representation of search results where i got a tag . further i am parsing this xml response to show result in a jsp page. but i ma not getting how can i high lite the fields in jsp page ----- Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/solr-highliting-feature-tp3079239p3079239.html Sent from the Solr - User mailing list archive at Nabble.com.
How do i use solr spellchecker in my search application
Hi, I want to implement spellchecker in my search application using solr. i did required changes in solr-config.xml file. and run the url http://localhost:8983/solr/spell?q=hell ultrashar&spellcheck=true&spellcheck.collate=true&spellcheck.build=true as given in http://wiki.apache.org/solr/SpellCheckComponent. But i am really confused why i need to give "q" queryparameter here. as i suppose this url is used to index according to spellchecker. nayhow i got the spleechecker indexes throuth it. but while i search i dont get the result. for example here in the urel q=hell which is actually dell in index. but when i search for hell i dont get the answer. while when i run the url i got suggestion dell for hell. for searching i use the url http://localhost:8983/solr/select/?q=hell&version=2.2&start=0&rows=10&indent=on Do i need to change the url?? Please explain me - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-do-i-use-solr-spellchecker-in-my-search-application-tp3079090p3079090.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to display search results of solr in to other application.
$.getJSON( "http://[server]:[port]/solr/select/?jsoncallback=?";, {"q": queryString, "version": "2.2", "start": "0", "rows": "10", "indent": "on", "json.wrf": "callbackFunctionToDoSomethingWithOurData", "wt": "json", "fl": "field1"} ); would you please explain what are queryString and "json.wrf": "callbackFunctionToDoSomethingWithOurData". and what if i want to change my query string each time. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-display-search-results-of-solr-in-to-other-application-tp3014101p3018740.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: how to make getJson parameter dynamic
lee carroll: Sorry for this. i did this because i was not getting any response. anyway thanks for letting me know and now i found the solution of the above problem :) now i am facing a very strange problem related to jquery can you please help me out. $(document).ready(function(){ $("#c2").click(function(){ var q=getquerystring() ; $.getJSON("http://192.168.1.9:8983/solr/db/select/?wt=json&q="+q+"&json.wrf=?";, function(result){ $.each(result.response.docs, function(i,item){ alert(result.response.docs); alert(item.UID_PK); }); }); }); }); when i use $("#c2").click(function() then it does not enter in $.getJSON() and when i remove $("#c2").click(function() from the code it run fine. Why is so please explain. because i want to get data from a text box on onclickevent and then display response. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-make-getJson-parameter-dynamic-tp3014941p3018732.html Sent from the Solr - User mailing list archive at Nabble.com.
how to make getJson parameter dynamic
$.getJSON("http://192.168.1.9:8983/solr/db/select/?q=diamond&wt=json&json.wrf=?";, function(result){ alert("hello" + result.response.docs[0].name); }); }); using this i am parsing solr json response, but as you can see it is hard coded (q=diamond) how can i make it user's choice. i mean user can pass the query at run time for example using a text box. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-make-getJson-parameter-dynamic-tp3014941p3014941.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: how to request for Json object
$.getJSON("http://192.168.1.9:8983/solr/db/select/?q=diamond&wt=json&json.wrf=?";, function(result){ alert("hello" + result.response.docs[0].name); }); }); using this i got the result. But as you can see it is hard coded, i am passing a query in the url how can i make it as user choice. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-request-for-Json-object-tp3014138p3014928.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: 'deltaImportQuery' attribute is not specified for entity : user
take a look at the following url it might help you. http://wiki.apache.org/solr/DataImportHandler#Using_delta-import_command - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-request-for-Json-object-tp3014138p3014805.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to display search results of solr in to other application.
I did this: $(document).ready(function(){ $.getJSON("http://[remotehost]:8983/solr/select/?q=diamond&wt=json&json.wrf=?";, function(result){ alert("hello" + result.response.docs[0].name); }); }); But i am not getting any result, what i did wrong ?? - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-display-search-results-of-solr-in-to-other-application-tp3014101p3014797.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: how to request for Json object
I did this: $(document).ready(function(){ $.getJSON("http://[remotehost]:8983/solr/select/?q=diamond&wt=json&json.wrf=?";, function(result){ alert("hello" + result.response.docs[0].name); }); }); But i am not getting any result, what i did wrong ?? - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-request-for-Json-object-tp3014138p3014792.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: how to request for Json object
sorry for the inconvenience, please look at this file http://lucene.472066.n3.nabble.com/file/n3014224/JsonJquery.text JsonJquery.text - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-request-for-Json-object-tp3014138p3014224.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: how to request for Json object
look at d uploaded file here here it is making request from my local server for Json to server "http://api.flickr.com i juss want the same i want to request for Json from local server to solr server. http://lucene.472066.n3.nabble.com/file/n3014191/Jquery_Json.html Jquery_Json.html - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-request-for-Json-object-tp3014138p3014191.html Sent from the Solr - User mailing list archive at Nabble.com.
how to request for Json object
How to parse Json through ajax when your ajax pager is on one server(Tomcat)and Json object is of onther server(solr server). i mean i have to make a request to another server, how can i do it . - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-request-for-Json-object-tp3014138p3014138.html Sent from the Solr - User mailing list archive at Nabble.com.
How to display search results of solr in to other application.
Hi, I am creating indexes using solr which is running on jetty server port 8983, and my application is running on tomcat server port 8080. Now my problem is i want to display the results of search on my application. i created a ajax-javascript page for parsing Json object. now please suggest me how i send my request to solr server for search and get back the result. Here is my sample html file where i parsed Json data. Solr Ajax Example query: Raw JSON String: I suppose i am making mistake in xmlhttpPost("/solr/db/select"). Thanks and regards Romi. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-display-search-results-of-solr-in-to-other-application-tp3014101p3014101.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to display solr search results in Json format
Thanks for reply, But i want to know how Json does it internally, I mean how it display results as Field:value. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-display-solr-search-results-in-Json-format-tp3004734p3004768.html Sent from the Solr - User mailing list archive at Nabble.com.
How to display solr search results in Json format
I have indexed all my database data in solr, now I want to rum search on it and display results in JSON. what i need to do for it. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-display-solr-search-results-in-Json-format-tp3004734p3004734.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: parentDeltaQuery
delta import i know. i want to abt parentdelta query - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/parentDeltaQuery-tp2979110p3000847.html Sent from the Solr - User mailing list archive at Nabble.com.
what is the need of setting in solrconfig.xml
What is the benifit of setting autocommit in solrconfig.xml. i read somewhere that these settings control how often pending updates will be automatically pushed to the index. does it mean if solr server is running then it automaticaly starts indexing process if it finds any updates in database??? - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/what-is-the-need-of-setting-autocommit-in-solrconfig-xml-tp2992438p2992438.html Sent from the Solr - User mailing list archive at Nabble.com.
what is the need of setting writeLockTimeout and commitLockTimeout in solrconfig.xml
I wanted to have the basic idea of setting these parameters in solrconfig.xml what actually writeLockTimeout and commitLockTimeout indicates here. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/what-is-the-need-of-setting-writeLockTimeout-and-commitLockTimeout-in-solrconfig-xml-tp2992358p2992358.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to disable QueryElevationComponent
i removed string elevate.xml from solrconfig.xml but it is showing the following exception: java.lang.NullPointerException at org.apache.solr.handler.dataimport.DataImporter.identifyPk(DataImporter.java:152) at org.apache.solr.handler.dataimport.DataImporter.(DataImporter.java:111) at org.apache.solr.handler.dataimport.DataImportHandler.inform(DataImportHandler.java:113) at org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:486) at org.apache.solr.core.SolrCore.(SolrCore.java:588) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:428) at org.apache.solr.core.CoreContainer.load(CoreContainer.java:278) at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:117) at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83) at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594) at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:210) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.mortbay.start.Main.invokeMain(Main.java:183) at org.mortbay.start.Main.start(Main.java:497) at org.mortbay.start.Main.main(Main.java:115) - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-disable-QueryElevationComponent-tp2992195p2992320.html Sent from the Solr - User mailing list archive at Nabble.com.
test
test - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/test-tp2992199p2992199.html Sent from the Solr - User mailing list archive at Nabble.com.
How to disable QueryElevationComponent
Hi, in my indexed document i do not want a uniqueKey field, but when i do not give any uniqueKey in schema.xml then it shows an exception org.apache.solr.common.SolrException: QueryElevationComponent requires the schema to have a uniqueKeyField. it means QueryElevationComponent requires a uniqueKey field.then how can i disable this QueryEvelationComponent. please reply. - Thanks & Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-disable-QueryElevationComponent-tp2992195p2992195.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: how can i index data in different documents
Ensure that when you add your documents, their "type" value is effectively set to either "table1" or table"2". did you mean i set in schema.xml??? but as far as i concern there can only be one document tag then what about the table2?? - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-can-i-index-data-in-different-documents-tp2988621p2988789.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: UniqueKey field in schema.xml
Stefen, as u can see template="{torder.UID_PK},${torderattribute.UID_PK} " /> orderUID is a foreignkey for the table torderattribue which maps to UID_PK(pk) of torder. when i run the query "select UID_PK from torderattribute where orderUID='${torder.UID_PK}'" this should fetch multiple rows ,because corredponding to one orderUID there are multiple rows. but it is not. to make it more clear consider this: torder: UID_PK(primary key) 120 121 122 torderattribute UID_PK(primary key) orderUID 86 120 87120 89121 90121 91 121 and in my search result i got only(120,86),(121,89). i am missing 3 values in torderattribute. why so , please explain. Thanks Romi. - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2988774.html Sent from the Solr - User mailing list archive at Nabble.com.
why use QueryElevationComponent
what is QueryElevationComponent, why it is used. in my schema.xml if i do not declare a uniqueKey then it shows the error org.apache.solr.common.SolrException: QueryElevationComponent requires the schema to have a uniqueKeyField why so ?? - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/why-use-QueryElevationComponent-tp2988675p2988675.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: UniqueKey field in schema.xml
first, you're missing a $ Sign for the first Variable. second, why not just ? The -Tag has no ID, in case you're using the TemplateTransformer. I got my solution..thanks for it. but after looking your this reply..please make it clear: UID_PK is a column in my database table torderattribute, then I it is mandatory to map it in schema.xml,that is why i use then how can i just use - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2988635.html Sent from the Solr - User mailing list archive at Nabble.com.
how can i index data in different documents
Hi, i was not getting reply for this post, so here i am reposting this, please reply. In my database i have two types of entity customer and product. I want to index customer related information in one document and product related information in other document. is it possible via solr , if so how can i achieve this. Thanks & Regards Romi. ----- Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-can-i-index-data-in-different-documents-tp2988621p2988621.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: UniqueKey field in schema.xml
Thanks a lot :)...finally i made it, template transformer is doing exactly what i wanted to do. :) :) - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2988608.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: problem in setting field attribute in schema.xml
Thanks for making me understand the concept of indexing and storing field. now i got the point :) - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2988516.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: problem in setting field attribute in schema.xml
:), Thanks.. now i got the purpose of indexed and store. - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2988506.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: UniqueKey field in schema.xml
I tried it as : template="{torder.UID_PK},${torderattribute.UID_PK} " /> But i suppose it is not correct because here i am not mapping UID_PK of torderattribute to any of field in schema.xml. can i add like this: where ID is a field in schema.xml and it is UniqueKey. - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2988484.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: problem in setting field attribute in schema.xml
did u mean when i set indexed="false" and store="true", solr does not index the field's value but store its value as it is??? - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2988458.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: UniqueKey field in schema.xml
i might have misspelled the question. this is the entry in my db-data-config.xml file: now i want combine UID_PK and UID for the uniqueKey of my indexing documet. i want to know how can i achieve this through schema.xml Thanks Romi - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2988323.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: UniqueKey field in schema.xml
I am not getting how can i combine two keys in to a single string using some delimiter - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2988284.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: problem in setting field attribute in schema.xml
i have done it, i deleted old indexes and created new indexes but still able to search it through *:*, and no result when i search it as field:value. really surprising result. :-O - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2988256.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: problem in setting field attribute in schema.xml
i deleted my index but what do u mean by restart with new schema?? - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2988197.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: UniqueKey field in schema.xml
what do you mean by combine two fields customerID and ProductId. what i tried is 1. make both fields unique but it doesnot server my purpose 2. make a new field ID and copy both customerID , ProductId into ID using CopyField and now make ID as uniqueKey but i got a error saying: Document specifies multiple unique ids - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2988168.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: problem in setting field attribute in schema.xml
thanks a lot bryan: it might be again the repetition, but i just want to know WHY it is indexing the field when it is indexed="false", what if stored="true", it is clearly written in documentation that a field is search able only if it is indexed="true", which surely make sense. and my application is not saying to do so i am just experimenting with solr to learn it. want to clear my concepts about indexing. Thanks Romi - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2988066.html Sent from the Solr - User mailing list archive at Nabble.com.
UniqueKey field in schema.xml
suppose I have two tables in database, say product table and customer table.i want to make (productID,customerID) a uniqueKey for my indexing document. how can i achieve this. - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2987807.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: What is omitNorms
Norms are used to boosts and field length normalization during indexing time so that short document has higher score How it is that if i set omitnorms="false" for a field then short documents have higher score. i could not get this point , might be because i could not find any running example for this.would you please explain. - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/What-is-omitNorms-tp2987547p2987799.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: Single document scanning
it seems, try again for better results - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Single-document-scanning-tp2987614p2987788.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Single document scanning
First of all subscribe to the mailing list. - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/Single-document-scanning-tp2987614p2987705.html Sent from the Solr - User mailing list archive at Nabble.com.
how can i index data in different documents
Hi, in my database i have two types of entity customer and product. I want to index customer related information in one document and product related information in other document. is it possible via solr , if so how can i achieve this. Thanks & Regards Romi. ----- Romi -- View this message in context: http://lucene.472066.n3.nabble.com/how-can-i-index-data-in-different-documents-tp2987696p2987696.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: What is omitNorms
thanks for the link, i got lot information from this document. Can u please tell me how can i verify omitNorms effect in my document indexing or searching. - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/What-is-omitNorms-tp2987547p2987649.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: problem in setting field attribute in schema.xml
even though i am running command for full-import, then also i deleted old indexes , re created indexes, i am not using defaultSearchFiled and copyingField attribute, still i am getting the search result for the field which i set as indexed="true", really strange, please help me to get rid of this problem. Thanks. - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2987628.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: What is omitNorms
and i also wanted to know what is difference if i set omitNorms in fieldType or if i set it in field. - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/What-is-omitNorms-tp2987547p2987562.html Sent from the Solr - User mailing list archive at Nabble.com.
What is omitNorms
hi, I want to know what is omitNorms for a field in schema.xml and what will be its effect on indexing and searching if I set it to true or false, please suggest me some suitable example. - Romi -- View this message in context: http://lucene.472066.n3.nabble.com/What-is-omitNorms-tp2987547p2987547.html Sent from the Solr - User mailing list archive at Nabble.com.