Re: why cant i send to solr using jquery post/get function?
In your place, I prefer to set the return format type in jquery like this example : $.post("test.php", { func: "getNameAndTime" }, function(data){ alert(data.name); // John console.log(data.time); // 2pm }, "json"); and in the server side with wt parameter wt=json So $.post("http://localhost:8983/solr/select/?q=body:hello&wt=json";, function(data){ alert(data.name); // John console.log(data.time); // 2pm }, "json"); And I'm not sure that the best way to query solr is POST. Get is recommanded. $.get("http://localhost:8983/solr/select/?q=body:hello&wt=json";, function(data){ alert("Data Loaded: " + data); }, "json" ); 2009/12/14 Faire Mii > when i enter http://localhost:8983/solr/select/?q=body:hello in the URL > field i get all the results. > > but when i'm using jquery code: > > $.post('http://localhost:8983/solr/select/?q=body:hello, function(data){ >alert(data); > }); > > > OR > > $.post('http://localhost:8983/solr/select/?, {q: 'body:hello'}, > function(data){ >alert(data); > }); > > > i get nothing. it doesnt give me anything. it doesnt even give me an alert. > > i have tried $.get as well without result. > > what could the problem be? > > > > Regards > > Fayer > >
Re: why cant i send to solr using jquery post/get function?
Are you tried with params wt="json" ? 2009/12/14 Faire Mii > when i enter http://localhost:8983/solr/select/?q=body:hello in the URL > field i get all the results. > > but when i'm using jquery code: > > $.post('http://localhost:8983/solr/select/?q=body:hello, function(data){ >alert(data); > }); > > > OR > > $.post('http://localhost:8983/solr/select/?, {q: 'body:hello'}, > function(data){ >alert(data); > }); > > > i get nothing. it doesnt give me anything. it doesnt even give me an alert. > > i have tried $.get as well without result. > > what could the problem be? > > > > Regards > > Fayer > >
Re: see index?
You can go to admin page of solr : example : http://localhost:8080/solr/mycore or http://localhost:8080/solr or your url to solr :-) There you click on "schema browser" on the first line containing links. In the next view, click on field in the left panel and choose the field you want to inspect. @++ 2009/12/14 Faire Mii > i wonder how one can see all of the words that are indexed in solr? > > i cant find it. > > /fayer >
Re: auto-starting Solr on OS X ?
Best way for you is LAUNCHD system. You can found a good documentation and some example. http://developer.apple.com/macosx/launchd.html 2009/12/12 Erick Erickson > See http://www.macosxhints.com/article.php?story=20041105070509783 > > In general, crontab is what you want, probably with the @Reboot > frequency > > HTH > Erick > > On Fri, Dec 11, 2009 at 10:04 PM, regany wrote: > > > > > hello! > > > > does anyone know how you go about setting up Solr so it auto starts after > a > > reboot etc on OS X? > > > > thanks, > > > > regan > > > > > > -- > > View this message in context: > > > http://old.nabble.com/auto-starting-Solr-on-OS-X---tp26753997p26753997.html > > Sent from the Solr - User mailing list archive at Nabble.com. > > > > >
Re: Solr Search in stemmed and non stemmed mode
Thanks, I'll read the mail archive. Your suggestion is like mine but whitout the DisMax handler. I'm going to read what is this handler. I have one field text and another text_unstemmed where I copy all others fields. I'm writing my custom query handler who check if quotes exists and switch between the good field. Going to read... Thanks 2009/12/7 Erick Erickson > Try searching the mail archive for > stemmer exact match > or similar, this has been discussed multiple times and you'll get more > complete discussions wy faster > > One suggestion is to use two fields, one for the stemmed version > and one for the original, then use whichever field you need to via > DixMax handler (more detail in the mail archive). > > Best > Erick > > On Mon, Dec 7, 2009 at 10:02 AM, khalid y wrote: > > > Hi !! > > > > I'm looking for a way to have two index in solr one stemmed and another > non > > stemmed. Why ? It's simple :-) > > > > My users can do query for : > > - banking marketing => it return all document matches bank*** and > > market*** > > - "banking" marketing => it return all document matches "banking" and > > market*** > > > > The second request need that I can switch between stemmed and not stemmed > > when the user write the keyword with quotes. > > > > The optimal solution is : solr can mix gracefully results from stemmed > and > > non stemmed index, with a good score calculation ect... > > > > The near optimal solution is : if solr see " " it switch in non stemmed > mod > > for all key words in query > > > > I have an idea but I prefer to listen the comunity voice before to > propose > > it. I'll expose it in my next post. > > > > If someone has an graceful idea to do this craps :-) > > > > Thanks > > >
Solr Search in stemmed and non stemmed mode
Hi !! I'm looking for a way to have two index in solr one stemmed and another non stemmed. Why ? It's simple :-) My users can do query for : - banking marketing => it return all document matches bank*** and market*** - "banking" marketing => it return all document matches "banking" and market*** The second request need that I can switch between stemmed and not stemmed when the user write the keyword with quotes. The optimal solution is : solr can mix gracefully results from stemmed and non stemmed index, with a good score calculation ect... The near optimal solution is : if solr see " " it switch in non stemmed mod for all key words in query I have an idea but I prefer to listen the comunity voice before to propose it. I'll expose it in my next post. If someone has an graceful idea to do this craps :-) Thanks
Re: WELCOME to solr-user@lucene.apache.org
Thanks a lot for you response !! For the first solution : I need to index all the content of my websites and I want just tika ignore because I have already an id I'll try monday and tell you if it works The second solution : Are your sure Tika use the HTML Tokenizer ? I'll check 2009/12/5 Raghuveer Kancherla > 2 ways I can think of ... > > - ExtractingRequestHandler (this is what I am guessing you are using now) > > Set extractOnly=true while making a request to the extractingRequestHandler > and get the parsed content back. Now make a post request on update request > handler with what ever fields and field values you want. > > > - Use HTMLStripWhiteSpaceTokenizer factory. This article may be helpful > to explain what I mean. > > http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.HTMLStripWhitespaceTokenizerFactory > . > > > > - Raghu > > > > On Sat, Dec 5, 2009 at 3:44 AM, khalid y wrote: > > > Hi, > > > > I have a problem with solr. I'm indexing some html content and solr crash > > because my id field is multivalued. > > I found that Tika read the html and extract metadata like > content="12"> from my htmls but my documents has an already an id setted > by > > literal.id=10. > > > > I tried to map the id from Tika by fmap.id=ignored_ but it ignore also > my > > literal.id > > > > I'm using solr 1.4 and tika 0.5 > > > > Someone can explain to me how I can ignore this the Tika id metadata ?? > > > > Thanks > > >
Re: WELCOME to solr-user@lucene.apache.org
Hi, I have a problem with solr. I'm indexing some html content and solr crash because my id field is multivalued. I found that Tika read the html and extract metadata like from my htmls but my documents has an already an id setted by literal.id=10. I tried to map the id from Tika by fmap.id=ignored_ but it ignore also my literal.id I'm using solr 1.4 and tika 0.5 Someone can explain to me how I can ignore this the Tika id metadata ?? Thanks