Re: Updating the index with a csv file
> curl 'http://localhost:8983/solr/update/csv?commit=true' --data-binary @books.csv -H 'Content-type:text/plain; charset=utf-8' > > ...perhaps there is some eccentricity about windows curl? I tried this on cygwin and books.csv could be uploaded without problems. Koji
Re: DataImportHandler: way to merge multiple db-rows to 1 doc using transformer?
What is the basis on which you merge rows ? Then I may be able to suggest an easy way of doing that On Sun, Sep 28, 2008 at 3:17 AM, Britske <[EMAIL PROTECTED]> wrote: > > Looking at the wiki, code of DataImportHandler and it looks impressive. > There's talk about ways to use Transformers to be able to create several > rows (solr docs) based on a single db row. > > I'd like to know if it's possible to do the exact opposite: to build > customer transformers that take multiple db-rows and merge it to a single > solr-row/document. If so, how? > > Thanks, > Britske > -- > View this message in context: > http://www.nabble.com/DataImportHandler%3A-way-to-merge-multiple-db-rows-to-1-doc-using-transformer--tp19706722p19706722.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- --Noble Paul
Merging Highlight and result section
Hi Solr-Users, Is there any way of merging Result section with the snippet generated using the highlight option. So what I am essentially asking is the following. If I query Solr with highlight set to true it returns me back an result + highlight section. In the following manner, It will return an + + . Snippet Text Now my requirement is to get the snippet text and make it part of the result section. Can this be done, I am using DisMaxHandler while querying (if this needs to be taken into consideration). --Thanks and Regards Vaijanath
using DataImportHandler instead of POST?
hi all :) I'm sorry I need to ask this, but after reading and re-reading the wiki I don't see a clear path... I have a well-formed xml file, suitable for POSTting to solr. that works just fine. it's very large, though, and using curl in production is so very lame. is there a very simple config that will let solr just slurp up the file via the DataImportHandler? solr already has everything it needs in schema.xml, so I don't think this would be very hard... if I fully understood the DataImportHandler :) tia --Geoff
Re: Is it possible to specify a pattern of Ranking while querying the indexes?
What I need is a specific sorting order in which the documents are retrieved. The only way I know that this is possible is using something like this - widescreen AND HDTV^2; popular desc, score desc; as given on http://wiki.apache.org/solr/SolrRelevancyCookbook?highlight=%28ranking%29 http://wiki.apache.org/solr/SolrRelevancyCookbook?highlight=%28ranking%29 Can I specify an order other than ascending or descending. For instance, if I have a 'Product' field in indexes with values P1,P2,P3,P4 If I query like this - (queryString);Product desc; Result would be - ,P4,P3,P2,P1 Now I want the order to be ,P3,P2,P1,P4. Is this possible ? Grant Ingersoll-6 wrote: > > Can you give an example of what you mean? > > On Sep 26, 2008, at 11:28 AM, tushar kapoor wrote: > >> >> I want to specify a particular pattern in which results are >> retrieved for a >> query. Can a pattern of ranks be specified in the query ? >> -- >> View this message in context: >> http://www.nabble.com/Is-it-possible-to-specify-a-pattern-of-Ranking-while-querying-the-indexes--tp19690731p19690731.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> > > -- > Grant Ingersoll > http://www.lucidimagination.com > > Lucene Helpful Hints: > http://wiki.apache.org/lucene-java/BasicsOfPerformance > http://wiki.apache.org/lucene-java/LuceneFAQ > > > > > > > > > -- View this message in context: http://www.nabble.com/Is-it-possible-to-specify-a-pattern-of-Ranking-while-querying-the-indexes--tp19690731p19718201.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: using DataImportHandler instead of POST?
yep. DIH can slurp an xml file . http://wiki.apache.org/solr/DataImportHandler#head-13ffe3a5e6ac22f08e063ad3315f5e7dda279bd4 use a FileDataSource instead of HttpDataSource if your xml is in the the solr add xml format use the attribute useSolrAddSchema="true" If your xml is really huge use stream="true" --Noble On Mon, Sep 29, 2008 at 9:30 AM, Geoffrey Young <[EMAIL PROTECTED]> wrote: > hi all :) > > I'm sorry I need to ask this, but after reading and re-reading the wiki > I don't see a clear path... > > I have a well-formed xml file, suitable for POSTting to solr. that > works just fine. it's very large, though, and using curl in production > is so very lame. is there a very simple config that will let solr just > slurp up the file via the DataImportHandler? solr already has > everything it needs in schema.xml, so I don't think this would be very > hard... if I fully understood the DataImportHandler :) > > tia > > --Geoff > -- --Noble Paul
Re: using DataImportHandler instead of POST?
: I have a well-formed xml file, suitable for POSTting to solr. that : works just fine. it's very large, though, and using curl in production : is so very lame. is there a very simple config that will let solr just : slurp up the file via the DataImportHandler? solr already has You don't even need DIH for this, just "enableRemoteStreaming" and use the stream.file param and you can load the file from local disk... http://wiki.apache.org/solr/ContentStream -Hoss
Re: Is it possible to specify a pattern of Ranking while querying the indexes?
Well that is not very well defined. I suppose if you can mathematically defined an ordering, you can implement it by writing some plugin code. On Mon, Sep 29, 2008 at 9:57 AM, tushar kapoor < [EMAIL PROTECTED]> wrote: > > What I need is a specific sorting order in which the documents are > retrieved. > The only way I know that this is possible is using something like this - > > widescreen AND HDTV^2; popular desc, score desc; > > as given on > http://wiki.apache.org/solr/SolrRelevancyCookbook?highlight=%28ranking%29 > http://wiki.apache.org/solr/SolrRelevancyCookbook?highlight=%28ranking%29 > > Can I specify an order other than ascending or descending. > > > For instance, if I have a 'Product' field in indexes with values > P1,P2,P3,P4 > > If I query like this - (queryString);Product desc; > > Result would be - ,P4,P3,P2,P1 > > Now I want the order to be ,P3,P2,P1,P4. Is this possible ? > > > > > Grant Ingersoll-6 wrote: > > > > Can you give an example of what you mean? > > > > On Sep 26, 2008, at 11:28 AM, tushar kapoor wrote: > > > >> > >> I want to specify a particular pattern in which results are > >> retrieved for a > >> query. Can a pattern of ranks be specified in the query ? > >> -- > >> View this message in context: > >> > http://www.nabble.com/Is-it-possible-to-specify-a-pattern-of-Ranking-while-querying-the-indexes--tp19690731p19690731.html > >> Sent from the Solr - User mailing list archive at Nabble.com. > >> > > > > -- > > Grant Ingersoll > > http://www.lucidimagination.com > > > > Lucene Helpful Hints: > > http://wiki.apache.org/lucene-java/BasicsOfPerformance > > http://wiki.apache.org/lucene-java/LuceneFAQ > > > > > > > > > > > > > > > > > > > > -- > View this message in context: > http://www.nabble.com/Is-it-possible-to-specify-a-pattern-of-Ranking-while-querying-the-indexes--tp19690731p19718201.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- Regards, Shalin Shekhar Mangar.
Re: Dismax , "query phrases"
On Fri, 26 Sep 2008 10:42:42 -0700 (PDT) Chris Hostetter <[EMAIL PROTECTED]> wrote: > : : class="solr.KeywordTokenizerFactory" />
Re: Is it possible to specify a pattern of Ranking while querying the indexes?
In case I dont want to write a plugin code for that, what is the option that I am left with ? As I see it, one of the solution is to add a new a ranking field and query on the basis of ascending/descending values of the ranking filed. To change the sort order change the value of the ranking field by re-creating indexes. Is there any other way of doing it ? Shalin Shekhar Mangar wrote: > > Well that is not very well defined. I suppose if you can mathematically > defined an ordering, you can implement it by writing some plugin code. > > On Mon, Sep 29, 2008 at 9:57 AM, tushar kapoor < > [EMAIL PROTECTED]> wrote: > >> >> What I need is a specific sorting order in which the documents are >> retrieved. >> The only way I know that this is possible is using something like this - >> >> widescreen AND HDTV^2; popular desc, score desc; >> >> as given on >> http://wiki.apache.org/solr/SolrRelevancyCookbook?highlight=%28ranking%29 >> http://wiki.apache.org/solr/SolrRelevancyCookbook?highlight=%28ranking%29 >> >> Can I specify an order other than ascending or descending. >> >> >> For instance, if I have a 'Product' field in indexes with values >> P1,P2,P3,P4 >> >> If I query like this - (queryString);Product desc; >> >> Result would be - ,P4,P3,P2,P1 >> >> Now I want the order to be ,P3,P2,P1,P4. Is this possible ? >> >> >> >> >> Grant Ingersoll-6 wrote: >> > >> > Can you give an example of what you mean? >> > >> > On Sep 26, 2008, at 11:28 AM, tushar kapoor wrote: >> > >> >> >> >> I want to specify a particular pattern in which results are >> >> retrieved for a >> >> query. Can a pattern of ranks be specified in the query ? >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Is-it-possible-to-specify-a-pattern-of-Ranking-while-querying-the-indexes--tp19690731p19690731.html >> >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> >> > >> > -- >> > Grant Ingersoll >> > http://www.lucidimagination.com >> > >> > Lucene Helpful Hints: >> > http://wiki.apache.org/lucene-java/BasicsOfPerformance >> > http://wiki.apache.org/lucene-java/LuceneFAQ >> > >> > >> > >> > >> > >> > >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Is-it-possible-to-specify-a-pattern-of-Ranking-while-querying-the-indexes--tp19690731p19718201.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> > > > -- > Regards, > Shalin Shekhar Mangar. > > -- View this message in context: http://www.nabble.com/Is-it-possible-to-specify-a-pattern-of-Ranking-while-querying-the-indexes--tp19690731p19719048.html Sent from the Solr - User mailing list archive at Nabble.com.