[Newbie]How to influante Revelance in Solr ?
Hi, I have an index that contain pname (text), pdescription (text) and popularity(sinteger). My index contain this docs : pname : hp printer pdescription : hp printer C 330 blabla popularity : 20 --- pname : hp laptop pdescription : hp laptop X125 Blabala... popularity : 10 --- pname : hp jet pdescription : hp jet JT554 blabla popularity : 10 I want to get results orderd by keyword matching (score) and popularity. When i tryed somthing like this : q=hpsort=popularity desc, score desc I get Hp printer, hp laptop and hp jet, so it works ! But when i try to search hp jet (q=hp jetsort=popularity desc, score desc) i get the same result like the first query whos totaly wrong ! How to influante the score in my case ? for exemple give to the matching 1 factor and popularity 1.5 (or 2) (i'm newbie in solr and java...) thank you. -- View this message in context: http://www.nabble.com/-Newbie-How-to-influante-Revelance-in-Solr---tp22766595p22766595.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: [Newbie]How to influante Revelance in Solr ?
2009/3/29 aerox7 amyne.berr...@me.com Hi, I have an index that contain pname (text), pdescription (text) and popularity(sinteger). My index contain this docs : pname : hp printer pdescription : hp printer C 330 blabla popularity : 20 --- pname : hp laptop pdescription : hp laptop X125 Blabala... popularity : 10 --- pname : hp jet pdescription : hp jet JT554 blabla popularity : 10 I want to get results orderd by keyword matching (score) and popularity. When i tryed somthing like this : q=hpsort=popularity desc, score desc I get Hp printer, hp laptop and hp jet, so it works ! But when i try to search hp jet (q=hp jetsort=popularity desc, score desc) i get the same result like the first query whos totaly wrong ! try searching q=hp jet ? How to influante the score in my case ? for exemple give to the matching 1 factor and popularity 1.5 (or 2) (i'm newbie in solr and java...) thank you. -- View this message in context: http://www.nabble.com/-Newbie-How-to-influante-Revelance-in-Solr---tp22766595p22766595.html Sent from the Solr - User mailing list archive at Nabble.com. -- Alexander Ramos Jardim
Re: [Newbie]How to influante Revelance in Solr ?
On Sun, Mar 29, 2009 at 4:57 PM, aerox7 amyne.berr...@me.com wrote: I want to get results orderd by keyword matching (score) and popularity. When i tryed somthing like this : q=hpsort=popularity desc, score desc I get Hp printer, hp laptop and hp jet, so it works ! But when i try to search hp jet (q=hp jetsort=popularity desc, score desc) i get the same result like the first query whos totaly wrong ! How to influante the score in my case ? for exemple give to the matching 1 factor and popularity 1.5 (or 2) Do not sort by popularity first as it will dominate the score. Look at function queries for influencing the score based on the popularity. http://wiki.apache.org/solr/FunctionQuery -- Regards, Shalin Shekhar Mangar.
solrReplication solr1.4 slave is slower during replication
Hi I would like to know if you leave your slave allowed for searching during a replication. Everytime a replication is applied ... poll is enable, and start to bring back files, my slave have a very batim perf, and can take 5sec to bring back the result, as soon it's done everything is back properly. Do you have the same problem? Do you turn off searching on this slave during this time?? thanks a lot, Johanna -- View this message in context: http://www.nabble.com/solrReplication-solr1.4-slave-is-slower-during-replication-tp22769716p22769716.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: [Newbie]How to influante Revelance in Solr ?
On Mar 29, 2009, at 8:42 AM, Shalin Shekhar Mangar wrote: On Sun, Mar 29, 2009 at 4:57 PM, aerox7 amyne.berr...@me.com wrote: I want to get results orderd by keyword matching (score) and popularity. When i tryed somthing like this : q=hpsort=popularity desc, score desc I get Hp printer, hp laptop and hp jet, so it works ! But when i try to search hp jet (q=hp jetsort=popularity desc, score desc) i get the same result like the first query whos totaly wrong ! How to influante the score in my case ? for exemple give to the matching 1 factor and popularity 1.5 (or 2) Do not sort by popularity first as it will dominate the score. Look at function queries for influencing the score based on the popularity. http://wiki.apache.org/solr/FunctionQuery also consider using the dismax parser with the 'bf' parameter. I think the example has that configured, also check: http://wiki.apache.org/solr/DisMaxRequestHandler#head-14b9ca618089829d139e6f3d6f52ff63e22a80d1 ryan
questions about transformers
Hi: Not sure how to solve this... I have a XML source and 1 table in a db. A specific filed in the XML source has the following field column=name xpath=/RDF/item/name / and in the table I have, id, name, group (group multivalued in solr term) What I like to do is every time i find name = John Doe in the XML source, I like to add the groups he belongs to from my database is this possible? - I been thinking exporting my table as a CSV and use the regex transformer? are there any better way of doing this? Custom transformer? sounds hard. Regards Anto __ Låna pengar utan säkerhet. Jämför vilkor online hos Kelkoo. http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014
Re: questions about transformers
A transformer is the best bet. See here for more details http://wiki.apache.org/solr/DIHCustomTransformer A custom Transformer can get hold of a DataSource using Context#getDataSource(name) and run a query. dataSource.getData() would return an IteratorMapString,Object , here each map is a row of data . In the MapString,Object, the key is the column name and the value is the actual value. you may also write this transformer in javascript. do not forget to close the DataSource after use. --Noble On Mon, Mar 30, 2009 at 7:15 AM, antonio_eggb...@yahoo.se wrote: Hi: Not sure how to solve this... I have a XML source and 1 table in a db. A specific filed in the XML source has the following field column=name xpath=/RDF/item/name / and in the table I have, id, name, group (group multivalued in solr term) What I like to do is every time i find name = John Doe in the XML source, I like to add the groups he belongs to from my database is this possible? - I been thinking exporting my table as a CSV and use the regex transformer? are there any better way of doing this? Custom transformer? sounds hard. Regards Anto __ Låna pengar utan säkerhet. Jämför vilkor online hos Kelkoo. http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014 -- --Noble Paul
Re: solrReplication solr1.4 slave is slower during replication
The download of index happens in a separate dedicated thread thread. While it is downloading the index , the other Indexsearcher is not affected. just that the disk utilization maybe high. The perf study conducted by us did not show any problem http://wiki.apache.org/solr/SolrReplication --Noble On Sun, Mar 29, 2009 at 10:19 PM, sunnyfr johanna...@gmail.com wrote: Hi I would like to know if you leave your slave allowed for searching during a replication. Everytime a replication is applied ... poll is enable, and start to bring back files, my slave have a very batim perf, and can take 5sec to bring back the result, as soon it's done everything is back properly. Do you have the same problem? Do you turn off searching on this slave during this time?? thanks a lot, Johanna -- View this message in context: http://www.nabble.com/solrReplication-solr1.4-slave-is-slower-during-replication-tp22769716p22769716.html Sent from the Solr - User mailing list archive at Nabble.com. -- --Noble Paul