Update specific field on Solr index

2011-10-13 Thread Chamnap Chhorn
Hello, I'm working on solr 1.4 with around 10 millions documents. Usually, it's fine. However, the issue arises when I add new field to the schema.xml, I need to reindex the whole database for that new field. Indexing the whole database with the whole properties takes so long to do. It would be be

Score boosting

2010-07-08 Thread Chamnap Chhorn
Hi everyone, I have a requirement to achieve, but i can't figure out how to do it. Hope someone could help me. Here is the requirement: A book has several keyphrases (available to use in searching). The author could buy the search result position with these keyphrases or simply add keyphrases rel

Re: Score boosting

2010-07-11 Thread Chamnap Chhorn
Thanks for your reply. Do you have other solution? Here each keyphrase must be matched with the exact and whole world. The problem is that it is a multivalued column. Chamnap On Thu, Jul 8, 2010 at 7:40 PM, osocurious2 wrote: > > Sounds like you want Payloads. I don't think you can guarantee a p

Ranking position in solr

2010-07-12 Thread Chamnap Chhorn
I wonder there is a proper way to fulfill this requirement. A book has several keyphrases. Each keyphrase consists from one word to 3 words. The author could either buy keyphrase position or don't buy position. Note: each author could buy more than 1 keyphrase. The keyphrase search must be exact an

Re: Ranking position in solr

2010-07-13 Thread Chamnap Chhorn
The problem is that every time I update the elevate.xml, I need to restart solr tomcat service. This feature needs to be updated frequently. How would i handle that? Any idea or other solutions? On Mon, Jul 12, 2010 at 5:45 PM, Ahmet Arslan wrote: > > I wonder there is a proper way to > > fulfi

Re: Ranking position in solr

2010-07-13 Thread Chamnap Chhorn
I'm using solr 1.4 and only one core. The elevate xml file is quite big, and i wonder can solr handle that? How to reload the core? On Tue, Jul 13, 2010 at 4:12 PM, Ahmet Arslan wrote: > > The problem is that every time I > > update the elevate.xml, I need to restart > > solr tomcat service. Thi

Re: Ranking position in solr

2010-07-14 Thread Chamnap Chhorn
I sent this command: curl http://localhost:8081/solr/update -F stream.body=' ', but it doesn't reload. It doesn't reload automatically after every commit or optimize unless I add new document then i commit. Any idea? On Tue, Jul 13, 2010 at 4:54 PM, Ahmet Arslan wrote: > > I'm using solr 1.4 a

why spellcheck and elevate search components can't work together?

2010-07-19 Thread Chamnap Chhorn
In my solrconfig.xml, I setup this way, but it doesn't work at all. Any one can help? it works one without other one. string_ci elevateListings.xml false explicit 20 dismax name^2 full_text^1 uuid 2.2 on 0.1

How to patch SOLR-1966?

2010-07-19 Thread Chamnap Chhorn
Hi, I'm a ruby developer, no background in Java at all. I need *exclusive=true*to work on elevation search component. However, it does need a patch, https://issues.apache.org/jira/browse/SOLR-1966. Anyone could present me a step by step in order to do that? -- Chhorn Chamnap http://chamnapchhor

Re: How to patch SOLR-1966?

2010-07-19 Thread Chamnap Chhorn
> HTH > Erick > > On Mon, Jul 19, 2010 at 6:17 AM, Chamnap Chhorn >wrote: > > > Hi, > > > > I'm a ruby developer, no background in Java at all. I need > > *exclusive=true*to work on elevation search component. However, it > > does need a patch,

Re: How to patch SOLR-1966?

2010-07-19 Thread Chamnap Chhorn
tch applied. > > See the second link I originally provided. > > HTH > Erick > > On Mon, Jul 19, 2010 at 9:15 PM, Chamnap Chhorn >wrote: > > > I'm using Solr 1.4, but the exclusive=true doesn't work for me at all. I > > wonder how that is ? >

Re: How to patch SOLR-1966?

2010-07-19 Thread Chamnap Chhorn
The other thing I want to ask is the latest build of solr is stable or not? I'm afraid it might bring some other problems to my system. Thanks, Chamnap On Tue, Jul 20, 2010 at 8:41 AM, Chamnap Chhorn wrote: > Ah, I get what you mean. One more thing, I wonder the patch SOLR-1147 has &g

Re: How to patch SOLR-1966?

2010-07-19 Thread Chamnap Chhorn
Is there an easy way to apply this patch to solr 1.4 release in my system because I will use in the production server. Thanks, Chamnap On Tue, Jul 20, 2010 at 8:49 AM, Chamnap Chhorn wrote: > The other thing I want to ask is the latest build of solr is stable or not? > I'm afraid it

dismax request handler without q

2010-07-19 Thread Chamnap Chhorn
I wonder how could i make a query to return only *all books* that has keyphrase "web development" using dismax handler? A book has multiple keyphrases (keyphrase is multivalued column). Do I have to pass q parameter? Is it the correct one? http://locahost:8081/solr/select?&q=hotel&fq=keyphrase:%2

Re: dismax request handler without q

2010-07-19 Thread Chamnap Chhorn
query (using query type). It is set > in > your config for your default request handler? > > 2010/7/20 Chamnap Chhorn > > > I wonder how could i make a query to return only *all books* that has > > keyphrase "web development" using dismax handler? A book has mul

Re: dismax request handler without q

2010-07-19 Thread Chamnap Chhorn
I can't put q=keyphrase:hotel in my request using dismax handler. It returns no result. On Tue, Jul 20, 2010 at 1:19 PM, Chamnap Chhorn wrote: > There are some default configuration on my solrconfig.xml that I didn't > show you. I'm a little confused when reading > htt

LocalSolr distance in km?

2010-07-20 Thread Chamnap Chhorn
Hi, I want to do a geo query with LocalSolr. However, It seems it supports only miles **when calculating distances. Is there a quick way to use this search component with solr using Km instead? The other thing I want it to calculate distance start from 500 meters up. How could I do this? -- Chho

OutOfMemoryErrors

2010-08-16 Thread Chamnap Chhorn
I got this error, anyone could explain and solve this? SEVERE: Exception invoking periodic operation: java.lang.OutOfMemoryError: Java heap space at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:114) at org.apache.catalina.core.ContainerBase.bac

Re: OutOfMemoryErrors

2010-08-17 Thread Chamnap Chhorn
Should I add this line with double quote or not? because if I don't, it doesn't work at all in my /etc/init.d/tomcat6. export CATALINA_OPTS="-Xms256m -Xmx1024m"; On Tue, Aug 17, 2010 at 1:36 PM, Grijesh.singh wrote: > > put that line in your startup script or u can set as env var > export CATALI

Re: OutOfMemoryErrors

2010-08-17 Thread Chamnap Chhorn
Is there a way to verify that I have added correctlly? On Tue, Aug 17, 2010 at 2:41 PM, Chamnap Chhorn wrote: > Should I add this line with double quote or not? because if I don't, it > doesn't work at all in my /etc/init.d/tomcat6. > > > export CATALINA_OPTS="-

possible to have multiple elevation file?

2010-08-23 Thread Chamnap Chhorn
Hi, I need multiple elevation file for each site (around 200). I think one big elevation file is difficult to manage. How could I manage each elevation file differently? Thanks -- Chhorn Chamnap http://chamnapchhorn.blogspot.com/

Re: possible to have multiple elevation file?

2010-08-23 Thread Chamnap Chhorn
Hi, Here, I talk about QueryElevationComponent<http://wiki.apache.org/solr/QueryElevationComponent?action=fullsearch&context=180&value=linkto%3A%22QueryElevationComponent%22> . Anyone has some idea? Thanks On Mon, Aug 23, 2010 at 3:10 PM, Chamnap Chhorn wrote: > Hi, &g

Multiple partial word searching with dismax handler

2010-10-19 Thread Chamnap Chhorn
Hi, I have some problem with combining the query with multiple parital-word searching in dismax handler. In order to make multiple partial word searching, I use EdgeNGramFilterFactory, and my query must be something like this: "name_ngram:sun name_ngram:hot" in q.alt combined with my search handle

Re: Multiple partial word searching with dismax handler

2010-10-20 Thread Chamnap Chhorn
Anyone can suggests how to do multiple partial word searching? On Wed, Oct 20, 2010 at 11:42 AM, Chamnap Chhorn wrote: > Hi, > > I have some problem with combining the query with multiple parital-word > searching in dismax handler. In order to make multiple partial word > s

QueryElevation Component is so slow

2010-10-28 Thread Chamnap Chhorn
Hi, I'm using solr 1.4 and using QueryElevation Component for guaranteed search position. I have around 700,000 documents with 1 Mb elevation file. It turns out it is quite slow on the newrelic monitoring website: Slowest Components Count Exclusive Total QueryElevationComponent 1 506,858 ms 100

Re: QueryElevation Component is so slow

2010-10-28 Thread Chamnap Chhorn
% FacetComponent 1 0.0 ms 0% 0.0 ms 0% On Thu, Oct 28, 2010 at 4:57 PM, Chamnap Chhorn wrote: > Hi, > > I'm using solr 1.4 and using QueryElevation Component for guaranteed search > position. I have around 700,000 do

Re: QueryElevation Component is so slow

2010-10-29 Thread Chamnap Chhorn
anyone has some suggestions to improve the search? thanks On 10/28/10, Chamnap Chhorn wrote: > Sorry for very bad pasting. I paste it again. > > Slowest Components Count Exclusive > Total > QueryElevationComponent

Re: QueryElevation Component is so slow

2010-10-29 Thread Chamnap Chhorn
be spread out. > > On Fri, Oct 29, 2010 at 12:27 AM, Chamnap Chhorn > wrote: >> anyone has some suggestions to improve the search? >> thanks >> >> On 10/28/10, Chamnap Chhorn wrote: >>> Sorry for very bad pasting. I paste it again. >>>

Re: QueryElevation Component is so slow

2010-10-29 Thread Chamnap Chhorn
be spread out. > > On Fri, Oct 29, 2010 at 12:27 AM, Chamnap Chhorn > wrote: >> anyone has some suggestions to improve the search? >> thanks >> >> On 10/28/10, Chamnap Chhorn wrote: >>> Sorry for very bad pasting. I paste it again. >>>

Re: QueryElevation Component is so slow

2010-10-30 Thread Chamnap Chhorn
atabase or large numbers > of results per query. > > Lance > > On Fri, Oct 29, 2010 at 7:04 AM, Chamnap Chhorn > wrote: > > Thanks for reply. > > > > I'm looking for how to improve the speed of the search query. The > > QueryElevation Component is taki

Re: QueryElevation Component is so slow

2010-10-30 Thread Chamnap Chhorn
20 On Sun, Oct 31, 2010 at 9:44 AM, Lance Norskog wrote: > How many items for each query? > > On Sat, Oct 30, 2010 at 7:34 PM, Chamnap Chhorn > wrote: > > Well, I use Solr 1.4. > > > > There are 30698 lines in my elevation file. I need only 20 results > respon

Xml representation of indexed document

2012-03-09 Thread Chamnap Chhorn
Hi all, I'm doing data import using DIH in solr 3.5. I'm curious to know whether it is see the xml representation of indexed data from the browser. Is it possible? I just want to make sure these data is correctly indexed with correct value or for debugging purpose. -- Chamnap

Re: Xml representation of indexed document

2012-03-10 Thread Chamnap Chhorn
xed view" of a document. > > maybe it helps. > > paul > > > Le 10 mars 2012 à 08:57, Anupam Bhattacharya a écrit : > > > You can use Luke to view Lucene Indexes. > > > > Anupam > > > > On Sat, Mar 10, 2012 at 12:27 PM, Chamnap Chhorn < >

Accessing other entities from DIH

2012-03-10 Thread Chamnap Chhorn
Hi all, I'm using DIH solr 3.5 to import data from mysql. In my document, I have some fields: name, category, text_spell, ... text_spell is a multi-valued field which combines from name and category (category is a multi-value field as well). In this case, I would use ScriptTra

Re: Accessing other entities from DIH

2012-03-10 Thread Chamnap Chhorn
javascript > the second argument may be omittted and it still works. > > then, > > generally it sounds like a copyfield > http://wiki.apache.org/solr/SchemaXml#Copy_Fields have you considered it? > > On Sat, Mar 10, 2012 at 3:42 PM, Chamnap Chhorn >wrote: > > > Hi all

Re: Xml representation of indexed document

2012-03-10 Thread Chamnap Chhorn
lud...@griddynamics.com> wrote: > Hello, > > DIH has a cute interactive ui with debug/verbose features. Have you checked > them? > > On Sat, Mar 10, 2012 at 10:57 AM, Chamnap Chhorn >wrote: > > > Hi all, > > > > I'm doing data import using DIH in sol

More explanation on row in DIH

2012-03-10 Thread Chamnap Chhorn
Hi all, Anyone please help explain me about a row in DIH. Let's say, a listing can have multiple keyphrase_assets. A keyphrase_asset is a comma-seperated value ("hotel,bank,..."). I need to index and split by comma into a multi-valued keyphrase field. function fKeyphrasePosition(row) { } Theref

Re: Index-time field boost with DIH

2012-05-24 Thread Chamnap Chhorn
Anyone could help me? I really need index-time field-boosting. On Thu, May 24, 2012 at 4:21 PM, Chamnap Chhorn wrote: > Hi all, > > I want to do index-time boost field on DIH. Is there any way to do this? I > see on this documentation, there is only $docBoost. How about field bo

Re: Index-time field boost with DIH

2012-05-24 Thread Chamnap Chhorn
and more flexible. > > wunder > Search Guy, Netflix & Chegg > > On May 24, 2012, at 6:11 AM, Chamnap Chhorn wrote: > > > Anyone could help me? I really need index-time field-boosting. > > > > On Thu, May 24, 2012 at 4:21 PM, Chamnap Chhorn >wrote: > > &

Re: Index-time field boost with DIH

2012-05-24 Thread Chamnap Chhorn
edismax config in your solrconfig.xml. > > log(max(docboost,1)) > > This will be multiplied into the score for each document. I use the max() > function to avoid problems with zero and negative values. > > wunder > > On May 24, 2012, at 8:19 AM, Chamnap Chhorn wrote: &g

Must require quote with single word token query?

2010-11-16 Thread Chamnap Chhorn
I have one question related to single word token with dismax query. In order to be found I need to add the quote around the search query all the time. This is quite hard for me to do since it is part of full text search. Here is my solr query and field type definition (Solr 1.4):

Re: Must require quote with single word token query?

2010-11-17 Thread Chamnap Chhorn
ismax definition too? You shouldn't need the > quotes, so something's wrong somewhere > > What version of Solr are you using? > > Also, please post the results of running your original query > with &debugQuery=on > > Best > Erick > > On Tue, Nov 16, 2

Re: Must require quote with single word token query?

2010-11-18 Thread Chamnap Chhorn
because query parser pre-tokenizes your query using whites > paces. It is tokenized before it reaches your query analyzer. > And you are using KeywordTokenizer in your field definition. > > Is there a special reason for you to use KeywordTokenizer ? > > > --- On Thu, 11/18/10, Cham

Re: Must require quote with single word token query?

2010-11-19 Thread Chamnap Chhorn
Wow, i never know this syntax before. What's that called? On 11/19/10, Yonik Seeley wrote: > On Tue, Nov 16, 2010 at 10:28 PM, Chamnap Chhorn > wrote: >> I have one question related to single word token with dismax query. In >> order >> to be found I need to ad

Re: Must require quote with single word token query?

2010-11-24 Thread Chamnap Chhorn
telephone, email, website has field type "text_keyword". Thanks On Sat, Nov 20, 2010 at 9:49 AM, Yonik Seeley wrote: > On Fri, Nov 19, 2010 at 9:41 PM, Chamnap Chhorn > wrote: > > Wow, i never know this syntax before. What's that called? > > I dubbed it "local

Re: Must require quote with single word token query?

2011-01-04 Thread Chamnap Chhorn
his time > anyway. > > If that doesn't do what you want, why don't you take a step back and tell > us what query behavior you are actually trying to create, and maybe someone > can give you some ideas for accomplishing it. > > > From: Chamnap Chhorn [chamnap

Multi-word exact keyword case-insensitive search suggestions

2011-01-12 Thread Chamnap Chhorn
Hi all, I'm just stuck with exact keyword for several days. Hope you guys could help me. Here is the scenario: 1. It need to be matched with multi-word keyword and case insensitive 2. Partial word or single word matching with this field is not allowed I want to know the field type definiti

Re: Multi-word exact keyword case-insensitive search suggestions

2011-01-13 Thread Chamnap Chhorn
ords="stopwords.txt" >enablePositionIncrements="true" >/> > generateWordParts="1" generateNumberParts="1" catenateWords="0" > catenateNumbers="0" catenateAll="0" splitOnCaseChang

Re: Multi-word exact keyword case-insensitive search suggestions

2011-01-14 Thread Chamnap Chhorn
@gmail.com> wrote: > > > Ahhh...the fun of open source software ;-). Requires a ton of trial and > > error! I found what worked for me and figured it was worth passing it > along. > > If you don't mind...when you sort everything out on your end, please post > > resu

Re: Multi-word exact keyword case-insensitive search suggestions

2011-01-17 Thread Chamnap Chhorn
No other way around to fit this requirement? On Sat, Jan 15, 2011 at 10:01 AM, Chamnap Chhorn wrote: > Ahh, thanks guys for helping me! > > For Adam solution, it doesn't work for me. Here is my Field, FieldType, and > solr query: > > po

q.alt=*:* for every request?

2011-02-07 Thread Chamnap Chhorn
Hi, I use dismax handler with solr 1.4. Sometimes, my request comes with q and fq, and others doesn't come with q (only fq and q.alt=*:*). It's quite ok if I send q.alt=*:* for every request? Does it have side effects on performance? -- Chhorn Chamnap http://chamnapchhorn.blogspot.com/

Re: problem when search grouping word

2011-02-24 Thread Chamnap Chhorn
There are many product names. How could I list them all, and the list is growing fast as well? On Thu, Feb 24, 2011 at 5:25 PM, Grijesh wrote: > > may synonym will help > > - > Thanx: > Grijesh > http://lucidimagination.com > -- > View this message in context: > http://lucene.472066.n3.nabbl

Re: problem when search grouping word

2011-02-25 Thread Chamnap Chhorn
Any idea? On Thu, Feb 24, 2011 at 6:49 PM, Chamnap Chhorn wrote: > There are many product names. How could I list them all, and the list is > growing fast as well? > > > On Thu, Feb 24, 2011 at 5:25 PM, Grijesh wrote: > >> >> may synonym will help >> &

Re: Changing the schema

2011-05-13 Thread Chamnap Chhorn
I wonder what if I add new field in the schema, do i have to reindex? If no need to reindex, can i just update the schema.xml directly? After that, Should I restart the tomcat service? If no need to reindex, how about the existing documents? If I do a query with new field, does it cause errors?

Re: how often do you boys restart your tomcat?

2011-07-26 Thread Chamnap Chhorn
I often restarted the tomcat service before the memory reaches the os limit. Usually, it eats up only 4 GB, but eventually it eats up 11GB. On Wed, Jul 27, 2011 at 8:42 AM, Bing Yu wrote: > I find that, if I do not restart the master's tomcat for some days, > the load average will keep rising to

Re: How to improve this solr query?

2012-07-02 Thread Chamnap Chhorn
nc. -- Where Influence Isn’t a Game. > http://www.appinions.com > > > On Mon, Jul 2, 2012 at 12:35 PM, Chamnap Chhorn > wrote: > > Hi all, > > > > I'm using solr 3.5 with nested query on the 4 core cpu server + 17 Gb. > The > > problem is that my query is

Re: How to improve this solr query?

2012-07-02 Thread Chamnap Chhorn
> some way to search that data differently? If it is a string, can you > change it to a text field and make sure 'apartment' is a separate > word? > > On Mon, Jul 2, 2012 at 10:01 AM, Chamnap Chhorn > wrote: > > Hi Michael, > > > > Thanks for quick respon

Re: How to improve this solr query?

2012-07-02 Thread Chamnap Chhorn
Lance, I didn't use widcard at all. I use only this, the difference is quoted or not. q2=*"apartment"* q1=*apartment* * * On Tue, Jul 3, 2012 at 12:06 PM, Lance Norskog wrote: > &q2=*"apartment"* > q1=*apartment* > > These are wildcards > >

Re: How to improve this solr query?

2012-07-03 Thread Chamnap Chhorn
Erick > > On Tue, Jul 3, 2012 at 8:41 AM, Michael Della Bitta > wrote: > > Chamnap, > > > > I have a hunch you can get away with not using *s. > > > > Michael Della Bitta > > > > -------- > > Appinions, I

Re: How to improve this solr query?

2012-07-04 Thread Chamnap Chhorn
match "hello world" depending on this slop > value). The "qf" means that given a multi term query, each term exists > in the specified fields (name, description whatever text fields you > want). > > Best > Amit > > On Mon, Jul 2, 2012 at 9:35 AM, Chamna

solr facet fields doesn't honor fq

2012-07-07 Thread Chamnap Chhorn
Hi all, I have a question related to solr 3.5 on field facet. Here is my query: http://localhost:8081/solr_new/select?tie=0.1&q.alt=*:*&q=bank&qf=nameaddress&fq= *portal_uuid:+A4E7890F-A188-4663-89EB-176D94DF6774*&defType=dismax&* facet=true*&facet.field=*location_uuid*&facet.field=*sub_category_

partial word searching

2010-04-21 Thread Chamnap Chhorn
Hi everyone, I'm quite new to solr 1.4. I have a requirement to be able to search partial words ("sun hot" => "Sunway Hotel") and to search full word("sunway hotel" => "Sunway Hotel"). Currently, I could be able to search only full word. Anyone has any suggestions? -- Chhorn Chamnap http://cham