Vinci | 1 Apr 2008 04:32
Picon

Re: Solr GET requests return quickly, POST requests take very long, why?


hi,

You need to give us some example...while you should ask in the tomcat user
group of how tomcat/apache dealing with POST request as ryan said they go to
the same loop.

Thank you,
Vinci

jnagro wrote:
> 
> I appreciate the response. We're running tomcat/apache at the moment. All
> of these questions are good, however it doesn't really explain why this
> would be happening so suddenly and why there is such a wide difference
> between POST and GET. Do you have any other thoughts that i could
> investigate? Some of these queries are taking almost 20 seconds to return,
> but running them as GETS returns them in under a second (we've even
> restarted servers to ensure query caching was cleared).
> 
> We are running a nightly build - we might try a newer one.
> 
> I will try and get some more info for you but any other insight would be
> helpful.
> 
> 

--

-- 
View this message in context: http://www.nabble.com/Solr-GET-requests-return-quickly%2C-POST-requests-take-very-long%2C-why--tp16396262p16407788.html
Sent from the Solr - User mailing list archive at Nabble.com.
(Continue reading)

Vinci | 1 Apr 2008 05:56
Picon

stored and indexed in schema


Hi,

I would like to ask, if I set a field to be indexed but not stored, I can
retrieved the document but cannot retrieve this field?
If I have large field that I want to index but I am not suppose to show them
to user (The origin content stored in another processed document where I am
using another field in Solr to point to their location...I throw the
retrieval job to the server :P), will I get faster respond even the query
doesn't ask solr to return this large field?

Thank you,
Vinci
--

-- 
View this message in context: http://www.nabble.com/stored-and-indexed-in-schema-tp16411090p16411090.html
Sent from the Solr - User mailing list archive at Nabble.com.

Vinci | 1 Apr 2008 06:00
Picon

Re: Indexing a word in url


Hi,

Thank you for your reply.
Actually I want to use anything that is not alphabet or digit to be the
separator - anything between them will be a word (so that I can use the URL
fragment to see what is indexed about this site)...any suggestion?

Thank you,
Vinci

Mike Klaas wrote:
> 
> 
> On 31-Mar-08, at 10:50 AM, Vinci wrote:
>>
>> Hi all,
>>
>> I would like to ask, if I want to index word in a URL, which data  
>> type and
>> parser should I use?
> 
> Depends on how you want to search it.  I use WordDelimiterFilter with  
> parts generation on only (no catenation), and an additiona stopwords  
> like that excludes a few tokens like 'http'.
> 
> -Mike
> 
> 

(Continue reading)

Vinci | 1 Apr 2008 06:09
Picon

Re: Setting a Threshold of a sortable field to filter the result?


Hi,

One more thing: which numerical data type I should use, sfloat or float, fot
the fq parameter? 

Thank you,
Vinci

hossman wrote:
> 
> : 
> : How can I set a threshold value of a field so that I can filter the
> result
> : which is lower than the threshold? By the schema.xml or set by the
> query?
> 
> fq=your_field_name:[* TO your_max_value]
> 
> or
> 
> fq=your_field_name:[your_min_value TO *]
> 
> depending on wether you want a minimum or maximum filter.
> 
> 
> 
> 
> -Hoss
> 
(Continue reading)

Bhavin Pandya | 1 Apr 2008 08:40
Picon
Favicon

How to handle multiple application?

I have configured solr instance for one of my application in which there is one master server and 3 slave server.

I want to add one more application in same solr instance ? is it possible ? or i need to run multiple instance of solr.

please help.

Bhavin pandya
Software engineer,
Rediff.com India Ltd,
Daniel Löfquist | 1 Apr 2008 11:02

Re: Solved! Solr interprets UTF-8 as ISO-8859-1

That did the trick. I actually figured it out on my own 10 minutes after 
I posted to the mailinglist. Typical ;-)
Thanks for the help anyway everybody!

//Daniel

Uwe Klosa wrote:
> You should set uriEncoding="UTF-8" in your application server. For tomcat
> you can do that in the server.xml. For Glassfish you have to create a
> sun-web.xml containing the according parameters. Yoy r application server
> should provide a similar mechanism.
> 
> Uwe
> 
> On Mon, Mar 31, 2008 at 4:32 PM, Daniel Löfquist <
> daniel.lofquist <at> it.cdon.com> wrote:
> 
>> Hello,
>>
>> We're building a webapplication that uses Solr for searching and I've
>> come upon a problem that I can't seem to get my head around.
>>
>> We have a servlet that accepts input via XML-RPC and based on that input
>> constructs the correct URL to perform a search with the Solr-servlet.
>>
>> I know that the call to Solr (the URL) from our servlet looks like this
>> (which is what it should look like):
>>
>> http://myserver:8080/solrproducts/select/?q=all_SV:ljusbl
>> å+status:online&fl=id%2Cartno%2Ctitle_SV%2CtitleSort_SV%2Cdescription_SV%2C&sort=titleSort_SV+asc,id+asc&start=0&q.op=AND&rows=25
(Continue reading)

Erik Hatcher | 1 Apr 2008 11:31
Favicon

Re: stored and indexed in schema


On Mar 31, 2008, at 11:56 PM, Vinci wrote:
> I would like to ask, if I set a field to be indexed but not stored,  
> I can
> retrieved the document but cannot retrieve this field?

That's correct.  By definition :)

> If I have large field that I want to index but I am not suppose to  
> show them
> to user (The origin content stored in another processed document  
> where I am
> using another field in Solr to point to their location...I throw the
> retrieval job to the server :P), will I get faster respond even the  
> query
> doesn't ask solr to return this large field?

You'll get better response in that Solr won't be taking the time to  
retrieve the large stored field, writing it to the response, and the  
client-side parsing that data, sure.

	Erik

Erik Hatcher | 1 Apr 2008 11:33
Favicon

Re: Setting a Threshold of a sortable field to filter the result?

I'll let the example schema.xml speak for itself:

     <!-- numeric field types that store and index the text
          value verbatim (and hence don't support range queries,  
since the
          lexicographic ordering isn't equal to the numeric ordering)  
-->
     <fieldType name="integer" class="solr.IntField" omitNorms="true"/>
     <fieldType name="long" class="solr.LongField" omitNorms="true"/>
     <fieldType name="float" class="solr.FloatField" omitNorms="true"/>
     <fieldType name="double" class="solr.DoubleField"  
omitNorms="true"/>

     <!-- Numeric field types that manipulate the value into
          a string value that isn't human-readable in its internal form,
          but with a lexicographic ordering the same as the numeric  
ordering,
          so that range queries work correctly. -->
     <fieldType name="sint" class="solr.SortableIntField"  
sortMissingLast="true" omitNorms="true"/>
     <fieldType name="slong" class="solr.SortableLongField"  
sortMissingLast="true" omitNorms="true"/>
     <fieldType name="sfloat" class="solr.SortableFloatField"  
sortMissingLast="true" omitNorms="true"/>
     <fieldType name="sdouble" class="solr.SortableDoubleField"  
sortMissingLast="true" omitNorms="true"/>

On Apr 1, 2008, at 12:09 AM, Vinci wrote:
>
> Hi,
(Continue reading)

Umar Shah | 1 Apr 2008 11:57
Favicon

Re: Can We append a field to the response that is not in the index but computed at runtime.

thanks ryan

seems like this would be helpful.
will try it out.

thanks again.
-umar

On Tue, Apr 1, 2008 at 12:13 AM, Chris Hostetter <hossman_lucene <at> fucit.org>
wrote:

>
> : > 2. Augment the documents with a field value -- this is a bit more
> : > complex and runs the risk of name collisions with fields in your
> : > documents.  You can pull the docLIst out from the response and add
> : > fields to each document.
> :
> : this seems more appropriate,
> : I'm okay, to resolve name collision , how do I add the  field.. any
> specific
> : methods to do that?
>
> I *think* the missing step here is that while DocLists can't easily be
> modified, new SolrDocument and SolrDocumentList classes have been
> added since 1.2.  Solr by defualt doesn't use them, but the built in Solr
> ResponseWriters can output them, so your custom component can build a
> SolrDocumentList bsed on the DocList, and add whatever fields you want.
>
> I'm not sure if there are any help methods to do the
> DocList->SolrDocumentList conversion.
(Continue reading)

Ryan McKinley | 1 Apr 2008 15:24
Picon

Re: How to handle multiple application?

You *may* want to consider MultiCore:
http://wiki.apache.org/solr/MultiCore

but it may still be more appropriate to install multiple instances.

On Apr 1, 2008, at 2:40 AM, Bhavin Pandya wrote:
> I have configured solr instance for one of my application in which  
> there is one master server and 3 slave server.
>
> I want to add one more application in same solr instance ? is it  
> possible ? or i need to run multiple instance of solr.
>
> please help.
>
> Bhavin pandya
> Software engineer,
> Rediff.com India Ltd,


Gmane