Need help Migrating to Solr
Hi I am new to the solr technology. We have been using lucene for handling searching in our web application www.toostep.com which is a knowledge sharing platform developed in java using Spring MVC architecture and iBatis as the persistance framework. Now that the application is getting very complex we have decided to implement Solr technology over lucene. Anyone having expertise in this area please give me some guidelines on where to start off and how to form the schema for Solr. Thanks and Regards Abin Mathew
transformer or filter...which is better
Hi When the same thing can be done using a transformer and a filter which one will be better? and why?? Please help
Newbie Question on Custom Query Generation
Hi I want to generate my own customized query from the input string entered by the user. It should look something like this *Search field : Microsoft* * Generated Query* : description:microsoft +((tags:microsoft^1.5 title:microsoft^3.0 role:microsoft requi rement:microsoft company:microsoft city:microsoft)^5.0) tags:microsoft^2.0 title:microsoft^3.5 functionalArea:microsoft *The lucene code we used is like this* BooleanQuery must = new BooleanQuery(); addToBooleanQuery(must, "tags", inputData, synonymAnalyzer, 1.5f); addToBooleanQuery(must, "title", inputData, synonymAnalyzer); addToBooleanQuery(must, "role", inputData, synonymAnalyzer); addToBooleanQuery(query, "description", inputData, synonymAnalyzer); addToBooleanQuery(must, "requirement", inputData, synonymAnalyzer); addToBooleanQuery(must, "company", inputData, standardAnalyzer); addToBooleanQuery(must, "city", inputData, standardAnalyzer); must.setBoost(5.0f); query.add(must, Occur.MUST); addToBooleanQuery(query, "tags", includeAll, synonymAnalyzer, 2.0f); addToBooleanQuery(query, "title", includeAll, synonymAnalyzer, 3.5f); addToBooleanQuery(query, "functionalArea", inputData, synonymAnalyzer,); * In Simple english* addToBooleanQuery will add the particular field to the query after analysing using the analyser mentioned and setting a boost as specified So there "MUST" be a keyword match with any of the fields tags,title,role,description,requirement,company,city and it "SHOULD" occur in the fields tags,title and functionalArea. Hope you have got an idea of my requirement. I am not asking anyone to do it for me. Please let me know where can i start and give me some useful tips to move ahead with this. I believe that it has to do with modifying the XML configuration file and setting the parameters in Dismax handler. But I am still not sure. Please help Thanks & Regards Abin Mathew
Re: Newbie Question on Custom Query Generation
Hi, I realized the power of Dismax Query Handler recently and now I dont need to generate my own query since Dismax is giving better results.Thanks a lot 2010/1/29 Wangsheng Mei : > What's the point of generating your own query? > Are you sure that solr query syntax cannot satisfy your need? > > 2010/1/29 Abin Mathew > >> Hi I want to generate my own customized query from the input string entered >> by the user. It should look something like this >> >> *Search field : Microsoft* >> * >> Generated Query* : >> description:microsoft +((tags:microsoft^1.5 title:microsoft^3.0 >> role:microsoft requi >> rement:microsoft company:microsoft city:microsoft)^5.0) tags:microsoft^2.0 >> title:microsoft^3.5 functionalArea:microsoft >> >> *The lucene code we used is like this* >> BooleanQuery must = new BooleanQuery(); >> >> addToBooleanQuery(must, "tags", inputData, synonymAnalyzer, 1.5f); >> addToBooleanQuery(must, "title", inputData, synonymAnalyzer); >> addToBooleanQuery(must, "role", inputData, synonymAnalyzer); >> addToBooleanQuery(query, "description", inputData, synonymAnalyzer); >> addToBooleanQuery(must, "requirement", inputData, synonymAnalyzer); >> addToBooleanQuery(must, "company", inputData, standardAnalyzer); >> addToBooleanQuery(must, "city", inputData, standardAnalyzer); >> must.setBoost(5.0f); >> query.add(must, Occur.MUST); >> addToBooleanQuery(query, "tags", includeAll, synonymAnalyzer, 2.0f); >> addToBooleanQuery(query, "title", includeAll, synonymAnalyzer, 3.5f); >> addToBooleanQuery(query, "functionalArea", inputData, synonymAnalyzer,); >> * >> In Simple english* >> addToBooleanQuery will add the particular field to the query after >> analysing >> using the analyser mentioned and setting a boost as specified >> So there "MUST" be a keyword match with any of the fields >> tags,title,role,description,requirement,company,city and it "SHOULD" occur >> in the fields tags,title and functionalArea. >> >> Hope you have got an idea of my requirement. I am not asking anyone to do >> it >> for me. Please let me know where can i start and give me some useful tips >> to >> move ahead with this. I believe that it has to do with modifying the XML >> configuration file and setting the parameters in Dismax handler. But I am >> still not sure. Please help >> >> Thanks & Regards >> Abin Mathew >> > > > > -- > 梅旺生 >
C++ being filtered (please help)
Hi I have a field which may take the form "C++,PHP & MySql,C#" now i want to tokenize it based on comma or white space and other word delimiting characters only.Not on the plus sign. so that result after tokenization should be C++ PHP MySql C# But the result I am getting is c php mysql c Please give me some pointers as to which analyzer and tokenizer to use Thank you Abin Mathew
Filtering results
Hi I want to add a filter to my query which takes documents whose "city" field has either Bangalore of cochin or Bombay. how do i do this? fq=city:bangalore&fq=city:bombay& fq=city:cochin will take the intersection. I need the union. Please help Thanks
Unsubscribe from mailing list
Please unsubscribe me from Mailing list