problem with ? wild card searches in solr

2011-07-23 Thread Romi
I am using solr for search . i am facing problem with wildcard searches.
when i search for dia?mond i get result for diamond
but when i search for ban?le i get no result.

what can be the problem 

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/problem-with-wild-card-searches-in-solr-tp3193222p3193222.html
Sent from the Solr - User mailing list archive at Nabble.com.


How to check that solr server is running

2011-07-23 Thread Romi
i have implemented search in my E commerce application. which hit
solr(running on port 8983) to get the search result

solr url is 

*url
=solrURL+/solr/db/select/?qt=dismaxwt=jsonstart=+start+rows=+end+q=+lowerCaseQuery+hl=truehl.fl=texthl.usePhraseHighlighter=truesort=
score desc ,+sort+ +order+json.wrf=?*

and using getJson i am getting the solr response. 

 $.getJSON(url, function(result){

now my problem is how can i determine that solr server is running.



-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-check-that-solr-server-is-running-tp3193326p3193326.html
Sent from the Solr - User mailing list archive at Nabble.com.


Problem in execution of error call in ajax request if solr server is not running

2011-07-22 Thread Romi
*$.ajax({
url:
solrURL+/solr/db/select/?qt=dismaxwt=jsonstart=+start+rows=+end+q=+query+json.wrf=?,
async:false,
dataType: 'json',
success: function(){
   
getSolrResponse(sort,order,itemPerPage,showPage,query,solrURL);  
}
,error:function(){

alert(there is an error);
}

})*

I have this ajax request, but even if solr url is not correct, than also
error code is not executing, why so. please tell me the solution. i have
tried with both async:false and async:true. in both cases error not called
if server is shutdown

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-in-execution-of-error-call-in-ajax-request-if-solr-server-is-not-running-tp3192962p3192962.html
Sent from the Solr - User mailing list archive at Nabble.com.


How to find whether solr server is running or not

2011-07-19 Thread Romi
I am running an application that get search results from solr server. But
when server is not running i get no response from the server. Is there any
way i can found that my server is not running so that i can give proper
error message regarding it


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3181870.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to find whether solr server is running or not

2011-07-19 Thread Romi
i am getting json response from solr as

*$.getJSON(http://192.168.1.9:8983/solr/db/select/?qt=dismaxwt=jsonstart=0rows=100q=eleganthl=truehl.fl=texthl.usePhraseHighlighter=truesort=
scorejson.wrf=?, function(result){*

how can i check whether i get response or not




-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3181942.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to find whether solr server is running or not

2011-07-19 Thread Romi
But the problem is when solr server is not runing 
*http://host:port/solr/admin/ping*

will not give me any json response
then how will i get the status :(

when i run this url browser gives me following error
*Unable to connect
Firefox can't establish a connection to the server at 192.168.1.9:8983.*

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3182202.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to find whether solr server is running or not

2011-07-19 Thread Romi
François Schiettecatte, how will i get 200 status code. I am getting json
response from solr server, 
as 
*$.getJSON(http://192.168.1.9:8983/solr/db/select/?qt=dismaxwt=jsonstart=0rows=100q=eleganthl=truehl.fl=texthl.usePhraseHighlighter=truesort=
scorejson.wrf=?, function(result){
*

but if solr server is not running this code does not execute...how can i
check than that server is not running

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3184556.html
Sent from the Solr - User mailing list archive at Nabble.com.


Problem in searching uppercase string with wildcard

2011-07-08 Thread Romi
Hello, I am using solr search. my search field contains both diamond and
Diamond. 
But when i search for Diamond/diamond it gives me correct results. But when
i search for Diamond*/diamond*, I get result for diamond* but no results
found for Diamond* . although i have applied  filter
class=solr.LowerCaseFilterFactory/.

would you please suggest me what can be the issue.

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-in-searching-uppercase-string-with-wildcard-tp3151037p3151037.html
Sent from the Solr - User mailing list archive at Nabble.com.


problem in spellchecker working with dismax requesthandler

2011-07-06 Thread Romi
Hi, In my solr search previously i was using standard request handler than
spellchecker was working fine. now i configured search to dismax request
handler. But now spellchecker is not working.
would you please tell me what can be the problem

Thanks

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/problem-in-spellchecker-working-with-dismax-requesthandler-tp3143662p3143662.html
Sent from the Solr - User mailing list archive at Nabble.com.


Highlight whole query phrase

2011-07-06 Thread Romi
i am using solr for search and i implemented highlighting feature for my
search results. when i my search string is ring it highlight ring but when
search string is gold ring than also it highlight only gold, where i
wanted to highlight whole gold ring for highlighting i use description field
which i got as 
*
highlighting ={
8252: {
text: [
 and emgold/ememRing/em  design was finely crafted
in Japan.
]
},
8142: {
text: [
This emelegant/em emRing/em  has an Akoya cultured
pearl with a band of bezel-set round diamonds making
]
}
};*


Now i am parsing it as
*
$.each(newresult.response.docs, function(i,item){
   var word = highlight[item[UID_PK]];
   var result=;
   var j=0;
   for (j=0 ;j=item.text.length;j++)
   {
result = result+item.text[j]+br;
   }
result=result.replace(word,'em' + word +
'/em');
});
*

Now how should i parse so that i got gold ring highlighted 


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Highlight-whole-query-phrase-tp3143797p3143797.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Highlight whole query phrase

2011-07-06 Thread Romi
I included hl.mergeContiguous parameter. in my url but no effect on search
result highlighting.
actually i need to parse highlighting property. please look at
http://jsfiddle.net/bhXbh/4/


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Highlight-whole-query-phrase-tp3143797p3144157.html
Sent from the Solr - User mailing list archive at Nabble.com.


How to match for more than one value in a string using regex match

2011-07-06 Thread Romi
Hi i want to highlight whole gold ring for this i am doing as

*var match = hitem.text[0].match(/em(.*?)\/em/);
where hitem.text[0]=emGold/em emRing/em
*

but the problem is var match is getting only Gold so i am able to highlight
only Gold, i want to make it an array so that it contains both gold and
ring, how can i do it. look at here http: http://jsfiddle.net/bhXbh/4/

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-match-for-more-than-one-value-in-a-string-using-regex-match-tp3144199p3144199.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Highlight whole query phrase

2011-07-06 Thread Romi
it is accidentally became elegant. anyway i got the solution without using
hl.mergeContiguous , because its not working.
look at http://jsfiddle.net/bhXbh/31/ for the solution

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Highlight-whole-query-phrase-tp3143797p3144575.html
Sent from the Solr - User mailing list archive at Nabble.com.


How to boost a querystring at query time

2011-07-05 Thread Romi
i want to enable boosting for query and search results. My dismax
queryHandlerConfiguration is as:

*requestHandler name=dismax class=solr.DisMaxRequestHandler   
lst name=defaults
 str name=echoParamsexplicit/str
  str name=defTypedismax/str 
 float name=tie0.01/float
 str name=qf
text^0.5 name^1.0 description^1.5 
 /str
str name=fl
UID_PK,name,price,description,score
 /str
 str name=mm
2lt;-1 5lt;-2 6lt;90%
 /str
 int name=ps100/int
 str name=q.alt*:*/str
 str name=f.name.hl.fragsize0/str
str name=f.name.hl.alternateFieldname/str
 str name=f.text.hl.fragmenterregex/str
/lst
  /requestHandler*


When querystring is q=gold^2.0 ring(boost gold) and qt=standard i got the
results for gold ring and when qt=dismax i got no result why so please
explain




-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-boost-a-querystring-at-query-time-tp3139800p3139800.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: configure dismax requesthandlar for boost a field

2011-07-05 Thread Romi
will merely adding fl=score make difference in search results, i mean will i
get desired results now???

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/configure-dismax-requesthandlar-for-boost-a-field-tp3137239p3139814.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: configure dismax requesthandlar for boost a field

2011-07-05 Thread Romi
I got the point that to boost search result i have to sort by score.
But as in solrconfig for dismax request handler i use  
*str name=qf
text^0.5 name^1.0 description^1.5 
 /str*


because i want docs having querystring in description field come upper in
search results.
but what i am getting is first doc in search result which does not have
querystring in its description field.


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/configure-dismax-requesthandlar-for-boost-a-field-tp3137239p3140501.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to boost a querystring at query time

2011-07-05 Thread Romi
than what should i do to get the required result. ie. if i want to boost gold
than which querytype i should use.

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-boost-a-querystring-at-query-time-tp3139800p3140703.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: MergerFactor and MaxMergerDocs effecting num of segments created

2011-07-04 Thread Romi
Shawn when i reindex data using full-import i got:
*_0.fdt 3310
_0.fdx  23
_0.frq  857
_0.nrm  31
_0.prx  1748
_0.tis  350
_1.fdt  3310
_1.fdx  23
_1.fnm  1
_1.frq  857
_1.nrm  31
_1.prx  1748
_1.tii  5
_1.tis  350
segments.gen1
segments_3  1*

Where all  _1  marked as archived(A)

And when i run again full import(for testing ) i got _1 and 2_ files where
all 2_ marked as archive. What does it mean.
and the problem i am not getting is while i am doing full import which
deletes the old indexes and creates new than why i m getting the old one
again.




-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/MergerFactor-and-MaxMergerDocs-effecting-num-of-segments-created-tp3128897p3136664.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Problem in including both clustering component and spellchecker for solr search results at the same time

2011-07-04 Thread Romi
Markus, i did like it 

*requestHandler name=search class=solr.SearchHandler default=true
 
 lst name=defaults 
str name=spellcheck.dictionarydefault/str

  
 str name=spellcheck.onlyMorePopulartrue/str
  
 str name=spellcheck.extendedResultsfalse/str
  
str name=spellcheck.count1/str
  /lst


 lst name=appends
 str name=spellcheck.dictionarydefault/str

  
 str name=spellcheck.onlyMorePopulartrue/str
  
 str name=spellcheck.extendedResultsfalse/str
  
str name=spellcheck.count1/str
 /lst
*


I hope i have done things correctly.
But when i run solr server i am getting exception 
*org.apache.solr.common.SolrException: Unknown Search Component:
clusteringComponent*


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-in-including-both-clustering-component-and-spellchecker-for-solr-search-results-at-the-same-e-tp3128864p3136756.html
Sent from the Solr - User mailing list archive at Nabble.com.


configure dismax requesthandlar for boost a field

2011-07-04 Thread Romi
I want to apply boost for searching. i want that if a query term occur both
in description,name than docs having query term in description field come
high in search results. for this i configure dismax request handler as:

*requestHandler name=dismax class=solr.DisMaxRequestHandler
default=true  
lst name=defaults
 str name=echoParamsexplicit/str
 float name=tie0.01/float
 str name=qf
text^0.5 name^1.0 description^1.5 
 /str
str name=fl
UID_PK,name,price,description
 /str
 str name=mm
2lt;-1 5lt;-2 6lt;90%
 /str
 int name=ps100/int
 str name=q.alt*:*/str
str name=f.name.hl.fragsize0/str
str name=f.name.hl.alternateFieldname/str
 str name=f.text.hl.fragmenterregex/str 
/lst
  /requestHandler*

But i am not finding any effect in my search results. do i need to do some
more configuration to see the effect.





-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/configure-dismax-requesthandlar-for-boost-a-field-tp3137239p3137239.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: configure dismax requesthandlar for boost a field

2011-07-04 Thread Romi
I am not returning score for the queries. as i suppose it should be reflected
in search results. means doc having query string in description field come
higher than the doc having query string in name field.

And yes i restarted solr after making changes in configuration.

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/configure-dismax-requesthandlar-for-boost-a-field-tp3137239p3139680.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to optimize solr indexes

2011-07-01 Thread Romi
when i run as : deltaimport?command=delta-importoptimize=false 

But i am still getting optimize=true when i look at admin console which is
in my original post

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-optimize-solr-indexes-tp3125293p3128424.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: MergerFacor effect on indexes

2011-07-01 Thread Romi
To see the changes i am deleting my old indexes and recreating them but still
getting the same result :(

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/MergerFacor-effect-on-indexes-tp3125146p3128432.html
Sent from the Solr - User mailing list archive at Nabble.com.


Problem in including both clustering component and spellchecker for solr search results at the same time

2011-07-01 Thread Romi
I want to include both clustering and spellchecker in my search results. but
at a time i am able to include only one. Only one, with which
requestHandler i am setting default=true. than how can i include both
clustering and spellchecker both for my results.


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-in-including-both-clustering-component-and-spellchecker-for-solr-search-results-at-the-same-e-tp3128864p3128864.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Problem in including both clustering component and spellchecker for solr search results at the same time

2011-07-01 Thread Romi
would you please give me an example for custom request handler

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-in-including-both-clustering-component-and-spellchecker-for-solr-search-results-at-the-same-e-tp3128864p3128893.html
Sent from the Solr - User mailing list archive at Nabble.com.


MergerFactor and MaxMergerDocs effecting num of segments created

2011-07-01 Thread Romi
My indexes are these, i want to see the effect of merge factor and maxmerge
docs. on These indexes how can i do it.
*
_0.fdt  3310 KB
_0.fdx  23 KB
_0.fnm  1 KB
_0.frq  857 KB
_0.nrm  31 KB
_0.prx  1748 KB
_0.tii  5 KB
_0.tis  350 Kb*

I mean what test cases for mergefactor and maxmergedoc i can run to see the
effect on indexed files. current configuration is:
*
mergeFactor2/mergeFactor
 maxMergeDocs10/maxMergeDocs*



-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/MergerFactor-and-MaxMergerDocs-effecting-num-of-segments-created-tp3128897p3128897.html
Sent from the Solr - User mailing list archive at Nabble.com.


Problem facing while querying for wild card queries

2011-07-01 Thread Romi
I am using solr for indexing and searching in my application. I am facing
some strange problem while querying wild card When i search for di?mo?d, i
get results for diamond but when i search for diamo?? i get no results.What
could be the reason please tell.

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-facing-while-querying-for-wild-card-queries-tp3128983p3128983.html
Sent from the Solr - User mailing list archive at Nabble.com.


MergerFacor effect on indexes

2011-06-30 Thread Romi
my solrconfig.xml configuration is as :
mainIndex
   useCompoundFilefalse/useCompoundFile
ramBufferSizeMB32/ramBufferSizeMB
mergeFactor5/mergeFactor
maxMergeDocs10/maxMergeDocs
maxFieldLength1/maxFieldLength
unlockOnStartupfalse/unlockOnStartup
  /mainIndex



my solrconfig.xml configuration is as :

*mainIndex
   useCompoundFilefalse/useCompoundFile
ramBufferSizeMB32/ramBufferSizeMB
mergeFactor5/mergeFactor
maxMergeDocs10/maxMergeDocs
maxFieldLength1/maxFieldLength
unlockOnStartupfalse/unlockOnStartup
  /mainIndex*

and index size is 12mb. but when i change my mergeFactor i am not finding
any effect in my indexes., ie. the no of segments are exactly same. i am not
getting which configuration will effect the no of segments. as i suppose it
is mergefactor. and my next problem is which configuration defines the
number of docs per segments and what will be the size of this segment so
that next segments will be created

please make me clear about these points


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/MergerFacor-effect-on-indexes-tp3125146p3125146.html
Sent from the Solr - User mailing list archive at Nabble.com.


How to use solr clustering to show in search results

2011-06-30 Thread Romi
wanted to use clustering in my search results, i configured solr for
clustering and i got following json for clusters. But i am not getting how
to use it to show in search results. as corresponding to one doc i have
number of fields and up till now i am showing name, description and id. now
in clusters i have labels and doc id. then how to use my docs in clusters, i
am really confused what to do Please reply. 

*
clusters:[

{
   labels:[
   Complement any Business Casual or Semi-formal
Attire
],
   docs:[
7799,
7801
]
  },
{
   labels:[
Design
],
   docs:[
8252,
7885
]
  },
{
   labels:[
Elegant Ring has an Akoya Cultured Pearl
],
   docs:[
8142,
8139
]
  },
{
   labels:[
Feel Amazing in these Scintillating Earrings
Perfect
],
   docs:[
12250,
12254
]
  },
{
   labels:[
Formal Evening Attire
],
   docs:[
8151,
8004
]
  },
{
   labels:[
Pave Set
],
   docs:[
7788,
8169
]
  },
{
   labels:[
Subtle Look or Layer it or Attach
],
   docs:[
8014,
8012
]
  },
   {
   labels:[
Three-stone Setting is Elegant and Fun
],
   docs:[
8335,
8337
]
  },
{
   labels:[
Other Topics
],
   docs:[
8038,
7850,
7795,
7989,
7797
]
  {
]*


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-use-solr-clustering-to-show-in-search-results-tp3125149p3125149.html
Sent from the Solr - User mailing list archive at Nabble.com.


How to optimize solr indexes

2011-06-30 Thread Romi
when i run solr/admin page i got this information, it shows optimize=true,
but i have not set optimize=true in configuration file than how it is
optimizing the indexes. and how can i set it to false then .


/Schema Information

Unique Key: UID_PK

Default Search Field: text

numDocs: 2881

maxDoc: 2881

numTerms: 41960

version: 1309429290159

optimized: true

current: true

hasDeletions: false

directory:
org.apache.lucene.store.SimpleFSDirectory:org.apache.lucene.store.SimpleFSDirectory@
C:\apache-solr-1.4.0\example\example-DIH\solr\db\data\index

lastModified: 2011-06-30T10:25:04.89Z/


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-optimize-solr-indexes-tp3125293p3125293.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: How to optimize solr indexes

2011-06-30 Thread Romi
and if i want to set it as optimize=false then what i need to do ??

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-optimize-solr-indexes-tp3125293p3125474.html
Sent from the Solr - User mailing list archive at Nabble.com.


filters effect on search results

2011-06-29 Thread Romi
Hi, when i query for elegant in solr i get results for elegance too. 

*I used these filters for index analyze*
WhitespaceTokenizerFactory 
StopFilterFactory 
WordDelimiterFilterFactory
LowerCaseFilterFactory 
SynonymFilterFactory
EnglishPorterFilterFactory
RemoveDuplicatesTokenFilterFactory
ReversedWildcardFilterFactory 

*
and for query analyze:*

.WhitespaceTokenizerFactory
SynonymFilterFactory
StopFilterFactory
WordDelimiterFilterFactory 
LowerCaseFilterFactory 
EnglishPorterFilterFactory 
RemoveDuplicatesTokenFilterFactory 

I want to know which filter affecting my search result.

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/filters-effect-on-search-results-tp3120968p3120968.html
Sent from the Solr - User mailing list archive at Nabble.com.


what is solr clustering component

2011-06-29 Thread Romi
I just went through solr wiki page for clustering. But i am not getting what
is the benefit of using clustering. Can anyone tell me what is actually
clusering and what its use in indexing and searching.
does it effect search results??
Please reply


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/what-is-solr-clustering-component-tp3121484p3121484.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: filters effect on search results

2011-06-29 Thread Romi
admin/analysis.jsp page shows RemoveDuplicatesTokenFilterFactory
,ReversedWildcardFilterFactory ,.EnglishPorterFilterFactory 

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/filters-effect-on-search-results-tp3120968p3121506.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: what is solr clustering component

2011-06-29 Thread Romi
thanks iorixxx, i changed my configuration to include clustering in search
results. in my xml format search results i got a tag clusters, to show
this clusters in to search results do i need to parse this xml.
and my second question is does clustering effect indexes. 

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/what-is-solr-clustering-component-tp3121484p3124627.html
Sent from the Solr - User mailing list archive at Nabble.com.


Include synonys in solr

2011-06-28 Thread Romi
Hi, i am using solr for my searches. in this i found a synonyms.text file in
which you can include synonyms manually for the words u want.

But as i suppose it would be very hard to include synonyms manually for each
word as my application has large data.

I want to know is there any way that this synonym.text file generate
automatically referring to all dictionary words

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Include-synonys-in-solr-tp3116836p3116836.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Include synonys in solr

2011-06-28 Thread Romi
Please see
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.SynonymFilterFactory

No offence, but a simple Google search, or a search of the Wiki
would have turned this up. Please try such simpler avenues before
dashing off a message to the list.


Gora, I heve already read the document and also included synonyms in my
search results :)

My question is , when i use this *filter class=solr.SynonymFilterFactory
synonyms=syn.txt ignoreCase=true expand=false/
* i need to enter synonyms manually in synonyms.txt. which is really tough
if you have many words for synonyms. i wanted to ask is there any other
option so that i need not to enter synonyms manually.. i hope you got my
point :)
 

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Include-synonyms-in-solr-tp3116836p3117365.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Include synonys in solr

2011-06-28 Thread Romi
I don't want to add all dictionary words to my synonyms.txt, but i wanted to
include synonyms for the words which i am having in my data...as you can
imagine if i have suppose 1000 words then i would be very tough to enter
synonyms for these 1000 words in synonyms.txt manually. I just want to know
how can i solve this puzzle so that i need not to enter synonyms manually.

for example for GB i am entering gigabyte
for ring i am entering synonyms as band, circle


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Include-synonyms-in-solr-tp3116836p3117373.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Include synonys in solr

2011-06-28 Thread Romi
Thanks François Schiettecatte, information you provided is very helpful.
i need to know one more thing, i downloaded one of the given dictionary but
it contains many files, do i need to add all this files data in to
synonyms.text ??

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Include-synonyms-in-solr-tp3116836p3117733.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: how to index data in solr form database automatically

2011-06-27 Thread Romi
Thanks for answering but i don't know  how to write script for fetching data
from database and index it in to solr and how to setup this script as
cron-job to run automatically at certain interval.


Please suggest .


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-index-data-in-solr-form-database-automatically-tp3102893p3112772.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: how to index data in solr form database automatically

2011-06-27 Thread Romi
Can i not use it for full-import ??

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-index-data-in-solr-form-database-automatically-tp3102893p3113002.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: how to index data in solr form database automatically

2011-06-24 Thread Romi
Yeah i am using data-import to get data from database and indexing it. but
what is cron can you please provide a link for it

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-index-data-in-solr-form-database-automatically-tp3102893p3103072.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: how to index data in solr form database automatically

2011-06-24 Thread Romi
would you please tell me how can i use Cron for auto index my database tables
in solr

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-index-data-in-solr-form-database-automatically-tp3102893p3103768.html
Sent from the Solr - User mailing list archive at Nabble.com.


how to index data in solr form database automatically

2011-06-23 Thread Romi
I have MySql database for my application. i implemented solr search and used
dataimporthandler(DIH)to index data from database into solr. my question is:
is there any way that if database gets updated then my solr indexes
automatically gets update for new data added in the database. . It means i
need not to run index process manually every time data base tables
changes.If yes then please tell me how can i achieve this.

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-index-data-in-solr-form-database-automatically-tp3102893p3102893.html
Sent from the Solr - User mailing list archive at Nabble.com.


Problem in accessing a variable's changed value outside of if block in javascript code

2011-06-22 Thread Romi
*$(#submit).click(function(){
var query=getquerystring() ; //get the query string entered by user
// get the JSON response from solr server 
var newquery=query;

   
$.getJSON(http://192.168.1.9:8983/solr/db/select/?wt=jsonstart=0rows=100q=+query+json.wrf=?;,
function(result){
//$.each(result.response.docs, function(result){

if(result.response.numFound==0)
{

   
$.getJSON(http://192.168.1.9:8983/solr/db/select/?wt=jsonstart=0rows=100q=+query+spellcheck=truejson.wrf=?;,
function(result){


$.each(result.spellcheck.suggestions, function(i,item){
newquery=item.suggestion;

});

});

}*


favorite


$(#submit).click(function(){
var query=getquerystring() ; //get the query string entered by user
// get the JSON response from solr server 
var newquery=query;

   
$.getJSON(http://192.168.1.9:8983/solr/db/select/?wt=jsonstart=0rows=100q=+query+json.wrf=?;,
function(result){
//$.each(result.response.docs, function(result){

if(result.response.numFound==0)
{

   
$.getJSON(http://192.168.1.9:8983/solr/db/select/?wt=jsonstart=0rows=100q=+query+spellcheck=truejson.wrf=?;,
function(result){


$.each(result.spellcheck.suggestions, function(i,item){
newquery=item.suggestion;

});

});

}

In the above javascript code a variable newquery initialy having value of
query. but when the if condition is true its value have changed. but my
problem is i am not getting its changed value outside of if block while i
want this changed value. how can i do this.


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-in-accessing-a-variable-s-changed-value-outside-of-if-block-in-javascript-code-tp3094342p3094342.html
Sent from the Solr - User mailing list archive at Nabble.com.


Conflict in wildcard query and spellchecker in solr search

2011-06-22 Thread Romi
Using solr search when i search for rin* it run wildcard query and i get the
result for ring but when i search for Rin* it run spellchecker and then
gives the result for ring. why so ?? please explain

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Conflict-in-wildcard-query-and-spellchecker-in-solr-search-tp3095198p3095198.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Conflict in wildcard query and spellchecker in solr search

2011-06-22 Thread Romi
* fieldType name=text class=solr.TextField positionIncrementGap=100
  analyzer type=index
tokenizer class=solr.WhitespaceTokenizerFactory/

filter class=solr.StopFilterFactory ignoreCase=true
words=stopwords.txt/
filter class=solr.WordDelimiterFilterFactory
generateWordParts=1 generateNumberParts=1 catenateWords=1
catenateNumbers=1 catenateAll=0 splitOnCaseChange=1/
filter class=solr.LowerCaseFilterFactory/
filter class=solr.SynonymFilterFactory 
synonyms=synonyms.txt
ignoreCase=true expand=true/
filter class=solr.EnglishPorterFilterFactory
protected=protwords.txt/
filter class=solr.RemoveDuplicatesTokenFilterFactory/
filter class=solr.ReversedWildcardFilterFactory 
withOriginal=true
maxPosAsterisk=6 maxPosQuestion=2 maxFractionAsterisk=0.33/ 
  /analyzer
  analyzer type=query
tokenizer class=solr.WhitespaceTokenizerFactory/
filter class=solr.SynonymFilterFactory synonyms=synonyms.txt
ignoreCase=true expand=true/
filter class=solr.StopFilterFactory ignoreCase=true
words=stopwords.txt/
filter class=solr.WordDelimiterFilterFactory
generateWordParts=1 generateNumberParts=1 catenateWords=0
catenateNumbers=0 catenateAll=0 splitOnCaseChange=1/
filter class=solr.LowerCaseFilterFactory/
filter class=solr.EnglishPorterFilterFactory
protected=protwords.txt/
filter class=solr.RemoveDuplicatesTokenFilterFactory/


  /analyzer
/fieldType*

I am using this fieldtype and applied these filters. for wildcard searches 
do i need to include some more filters or what other configurations are
needed

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Conflict-in-wildcard-query-and-spellchecker-in-solr-search-tp3095198p3095290.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Conflict in wildcard query and spellchecker in solr search

2011-06-22 Thread Romi
how can I lowercase query outside of Solr before sending a query?

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Conflict-in-wildcard-query-and-spellchecker-in-solr-search-tp3095198p3095345.html
Sent from the Solr - User mailing list archive at Nabble.com.


Parse solr json object

2011-06-21 Thread Romi
Hi, for enabling highlighting i want to parse json object. for readilibility
i included xml format of that json object. please tell me how should i parse
this object using 
$.each(, function(i,item){

so that i could get highlighted result. 


lst name=highlighting
−
lst name=12250
−
arr name=description
−
str
These emelegant/em and fluid earrings have six round prong-set and
twenty-six faceted briolette
/str
/arr
/lst
−
lst name=12254
−
arr name=description
−
str
These emelegant/em and fluid earrings have six round prong-set and
twenty-six faceted briolette
/str
/arr
/lst


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Parse-solr-json-object-tp3089470p3089470.html
Sent from the Solr - User mailing list archive at Nabble.com.


problem with wild card query with spellchecker

2011-06-21 Thread Romi
I am enabling spell checking using solr  in  search application. i also want
to run wild card queries.
the problem i am facing is when i search for for example diam* then it gives
me a suggestion for diamond and search results for diamond. while i have
some other words in my document say for example diamender,diamounder but i
am not getting results for them

cant i use wild card query with spell checker?? 

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/problem-with-wild-card-query-with-spellchecker-tp3090651p3090651.html
Sent from the Solr - User mailing list archive at Nabble.com.


Request handle solrconfig.xml Spellchecker

2011-06-20 Thread Romi
I am trying to set up spellchecker, according to solr documentation. But when
I am testing, I don't have any suggestion. My piece of code follows: 

searchComponent name=spellcheck class=solr.SpellCheckComponent

str name=queryAnalyzerFieldTypetextSpell/str

lst name=spellchecker
  str name=classnamesolr.IndexBasedSpellChecker/str
  str name=namedefault/str
  str name=fieldname/str
  str name=spellcheckIndexDir./spellchecker/str
/lst

/searchComponent


requestHandler name=/spellcheck class=solr.SearchHandler
lst name=defaults
  str name=echoParamsexplicit/str
  
  str name=spellcheck.dictionarydefault/str
  
  str name=spellcheck.onlyMorePopularfalse/str
  
  str name=spellcheck.extendedResultsfalse/str
  
  str name=spellcheck.count1/str
/lst
arr name=last-components
  strspellcheck/str
/arr
  /requestHandler







i build the dictionary as
http://localhost:8983/solr/select/?q=*:*spellcheck=truespellcheck.build=true


but when i run the query i am not getting any suggestion
http://localhost:8983/solr/select?q=komputerspellcheck=true

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Request-handle-solrconfig-xml-Spellchecker-tp3085053p3085053.html
Sent from the Solr - User mailing list archive at Nabble.com.


How to highlight a field in searchresult using solr

2011-06-20 Thread Romi
Hi, I  want to include highlighting feature in my search application using
solr. I did necessary changes in config file for highlighting feature. when
i run the url with hl=truehl.fl=somefield i got the highligting. now i
want to display these highlighted  fields in my search.jsp page. To display
the search result i am getting solr json object as

$.getJSON(http://192.168.1.9:8983/solr/db/select/?wt=jsonstart=0rows=20q=diamondhl=truehl.fl=namejson.wrf=?;,
function(result){


and by parsing it displaying the result. my question is do i need to parse
highlighting tag separately or it will highlight the hl.fl=name
automatically

Thanks
Romi


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-highlight-a-field-in-searchresult-using-solr-tp3086301p3086301.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to highlight a field in searchresult using solr

2011-06-20 Thread Romi
Jan Høydahl / Cominvent, without parsing json object for highlighting i am
able to show the result just using the url with hl=true and
hl.fl=somefield.  and i got the field highlighted. but what  i want is to
highlight only data  i pass in the query ,in that somefield not full field
data. How can i do this.

Thanks

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-highlight-a-field-in-searchresult-using-solr-tp3086301p3089374.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: solr highliting feature

2011-06-19 Thread Romi
yes, I find title in highlighting section. If i am getting results say by
parsing json object then do i need to parse highlighting?

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/solr-highliting-feature-tp3079239p3084890.html
Sent from the Solr - User mailing list archive at Nabble.com.


How do i use solr spellchecker in my search application

2011-06-18 Thread Romi
Hi, I want to implement spellchecker in my search application using solr. i
did required changes in solr-config.xml file. and run the url 
http://localhost:8983/solr/spell?q=hell
ultrasharspellcheck=truespellcheck.collate=truespellcheck.build=true
 as given in http://wiki.apache.org/solr/SpellCheckComponent.

But i am really confused why i need to give q queryparameter here. as i
suppose this url is used to index according to spellchecker.

nayhow i got the spleechecker indexes throuth it. but while i search i dont
get the result. for example here in the urel q=hell which is actually dell
in index. but when i search for hell i dont get the answer. while when i run
the url i got suggestion dell for hell. 

for searching i use the url  
http://localhost:8983/solr/select/?q=hellversion=2.2start=0rows=10indent=on

Do i need to change the url??

Please explain me

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-do-i-use-solr-spellchecker-in-my-search-application-tp3079090p3079090.html
Sent from the Solr - User mailing list archive at Nabble.com.


solr highliting feature

2011-06-18 Thread Romi
I want to highlight some search result value. i used solr for this. as i
suppose solr provides highlighting feature. i used it i configure
highlighting in solr-config.xml. i set hl=true and hl.fl=somefield at
query time in my url when i run the url it gives me a xml representation of
search results where i got a tag highliting.

further i am parsing this xml response to show result in a jsp page. but i
ma not getting how can i high lite the fields in jsp page

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/solr-highliting-feature-tp3079239p3079239.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: how to make getJson parameter dynamic

2011-06-03 Thread Romi
lee carroll: Sorry for this. i did this because i was not getting any
response. anyway thanks for letting me know and now i found the solution of
the above problem :)
now i am facing a very strange problem related to jquery can you please help
me out.

$(document).ready(function(){
 $(#c2).click(function(){
var q=getquerystring() ;

   
$.getJSON(http://192.168.1.9:8983/solr/db/select/?wt=jsonq=+q+json.wrf=?;,
function(result){
$.each(result.response.docs, function(i,item){
alert(result.response.docs);
alert(item.UID_PK);
});
});
});
});


when i use $(#c2).click(function() then it does not enter in $.getJSON()
and when i remove $(#c2).click(function() from the code it run fine. Why
is so please explain. because i want to get data from a text box on
onclickevent and then display response.



-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-make-getJson-parameter-dynamic-tp3014941p3018732.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to display search results of solr in to other application.

2011-06-03 Thread Romi
$.getJSON(
   http://[server]:[port]/solr/select/?jsoncallback=?;,
   {q: queryString,
   version: 2.2,
   start: 0,
   rows: 10,
   indent: on,
   json.wrf: callbackFunctionToDoSomethingWithOurData,
   wt: json,
   fl: field1}
   ); 

would you please explain what are  queryString and json.wrf:
callbackFunctionToDoSomethingWithOurData. and what if i want to change my
query string each time.

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-display-search-results-of-solr-in-to-other-application-tp3014101p3018740.html
Sent from the Solr - User mailing list archive at Nabble.com.


How to display search results of solr in to other application.

2011-06-02 Thread Romi
Hi, I am creating indexes using solr which is running on jetty server port
8983, and my application is running on tomcat server port 8080. Now my
problem is i want to display the results of search on my application. i
created a ajax-javascript page for parsing Json object. now please suggest
me how i send my request to solr server for search and get back the result.

Here is my sample html file where i parsed Json data.

html
head
titleSolr Ajax Example/title

/head
body

form name=f1 onsubmit='xmlhttpPost(/solr/db/select); return false;'
  pquery: input name=query type=text  
  input value=Go type=submit/p
  
div id=result/div
p/preRaw JSON String: div id=raw/div/pre
/form
/body
/html



I suppose i am making mistake in xmlhttpPost(/solr/db/select).

Thanks and regards
Romi.

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-display-search-results-of-solr-in-to-other-application-tp3014101p3014101.html
Sent from the Solr - User mailing list archive at Nabble.com.


how to request for Json object

2011-06-02 Thread Romi
How to parse Json through ajax when your ajax pager is on one
server(Tomcat)and Json object is of onther server(solr server). i mean i
have to make a request to another server, how can i do it .

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-request-for-Json-object-tp3014138p3014138.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: how to request for Json object

2011-06-02 Thread Romi
look at d uploaded file here here it is making request from my local server 
for Json to server http://api.flickr.com 
i juss want the same i want to request for Json from local server to solr
server.
http://lucene.472066.n3.nabble.com/file/n3014191/Jquery_Json.html
Jquery_Json.html 

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-request-for-Json-object-tp3014138p3014191.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: how to request for Json object

2011-06-02 Thread Romi
sorry for the inconvenience, please look at this file
http://lucene.472066.n3.nabble.com/file/n3014224/JsonJquery.text
JsonJquery.text 



-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-request-for-Json-object-tp3014138p3014224.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: how to request for Json object

2011-06-02 Thread Romi
I did this:

 $(document).ready(function(){


$.getJSON(http://[remotehost]:8983/solr/select/?q=diamondwt=jsonjson.wrf=?;,
function(result){

 alert(hello + result.response.docs[0].name);
});
});


But i am not getting any result, what i did wrong ??

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-request-for-Json-object-tp3014138p3014792.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to display search results of solr in to other application.

2011-06-02 Thread Romi
I did this:

 $(document).ready(function(){


$.getJSON(http://[remotehost]:8983/solr/select/?q=diamondwt=jsonjson.wrf=?;,
function(result){

 alert(hello + result.response.docs[0].name);
});
});


But i am not getting any result, what i did wrong ?? 

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-display-search-results-of-solr-in-to-other-application-tp3014101p3014797.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: 'deltaImportQuery' attribute is not specified for entity : user

2011-06-02 Thread Romi
take a look at the following url it might help you.
http://wiki.apache.org/solr/DataImportHandler#Using_delta-import_command

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-request-for-Json-object-tp3014138p3014805.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: how to request for Json object

2011-06-02 Thread Romi
 
$.getJSON(http://192.168.1.9:8983/solr/db/select/?q=diamondwt=jsonjson.wrf=?;,
function(result){

 alert(hello + result.response.docs[0].name);
});
});

using this i got the result. But as you can see it is hard coded, i am
passing a query in the url how can i make it as user choice.


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-request-for-Json-object-tp3014138p3014928.html
Sent from the Solr - User mailing list archive at Nabble.com.


how to make getJson parameter dynamic

2011-06-02 Thread Romi
 
$.getJSON(http://192.168.1.9:8983/solr/db/select/?q=diamondwt=jsonjson.wrf=?;,
function(result){

 alert(hello + result.response.docs[0].name);
});
});

using this i am parsing solr json response, but as you can see it is hard
coded (q=diamond) how can i make it user's choice. i mean user can pass the
query at run time for example using a text box.

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-make-getJson-parameter-dynamic-tp3014941p3014941.html
Sent from the Solr - User mailing list archive at Nabble.com.


How to display solr search results in Json format

2011-05-31 Thread Romi
I have indexed all my database data in solr, now I want to rum search on it
and display results in JSON. what i need to do for it.


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-display-solr-search-results-in-Json-format-tp3004734p3004734.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to display solr search results in Json format

2011-05-31 Thread Romi
Thanks for reply, But i want to know how Json does it internally, I mean how
it display results as Field:value.

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-display-solr-search-results-in-Json-format-tp3004734p3004768.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: parentDeltaQuery

2011-05-29 Thread Romi
delta import i know. i want to abt parentdelta query

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/parentDeltaQuery-tp2979110p3000847.html
Sent from the Solr - User mailing list archive at Nabble.com.


How to disable QueryElevationComponent

2011-05-27 Thread Romi
Hi, in my indexed document i do not want a uniqueKey field, but when i do not
give any uniqueKey in schema.xml then it shows an exception
org.apache.solr.common.SolrException: QueryElevationComponent requires the
schema to have a uniqueKeyField.
it means QueryElevationComponent requires a uniqueKey field.then how can i
disable this QueryEvelationComponent. please reply.

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-disable-QueryElevationComponent-tp2992195p2992195.html
Sent from the Solr - User mailing list archive at Nabble.com.


test

2011-05-27 Thread Romi
test

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/test-tp2992199p2992199.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to disable QueryElevationComponent

2011-05-27 Thread Romi
i removed 
searchComponent name=elevator
class=org.apache.solr.handler.component.QueryElevationComponent 
 
 str name=queryFieldTypestring/str
str name=config-fileelevate.xml/str
  /searchComponent

from solrconfig.xml but it is showing the following exception:

java.lang.NullPointerException
at
org.apache.solr.handler.dataimport.DataImporter.identifyPk(DataImporter.java:152)
at
org.apache.solr.handler.dataimport.DataImporter.init(DataImporter.java:111)
at
org.apache.solr.handler.dataimport.DataImportHandler.inform(DataImportHandler.java:113)
at
org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:486)
at org.apache.solr.core.SolrCore.init(SolrCore.java:588)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:428)
at org.apache.solr.core.CoreContainer.load(CoreContainer.java:278)
at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:117)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:210)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)




-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-disable-QueryElevationComponent-tp2992195p2992320.html
Sent from the Solr - User mailing list archive at Nabble.com.


what is the need of setting writeLockTimeout and commitLockTimeout in solrconfig.xml

2011-05-27 Thread Romi
I wanted to have the basic idea of setting these parameters in solrconfig.xml
writeLockTimeout/writeLockTimeout
commitLockTimeout/commitLockTimeout

what actually writeLockTimeout and commitLockTimeout indicates here.


-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/what-is-the-need-of-setting-writeLockTimeout-and-commitLockTimeout-in-solrconfig-xml-tp2992358p2992358.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: What is omitNorms

2011-05-26 Thread Romi
thanks for the link, i got lot information from this document. Can u please
tell me how can i verify omitNorms effect in my document indexing or
searching.

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/What-is-omitNorms-tp2987547p2987649.html
Sent from the Solr - User mailing list archive at Nabble.com.


how can i index data in different documents

2011-05-26 Thread Romi
Hi, in my database i have two types of entity customer and product. I want to
index customer related information in one document and product related
information in other document. is it possible via solr , if so how can i
achieve this. 

Thanks  Regards
Romi.

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-can-i-index-data-in-different-documents-tp2987696p2987696.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Single document scanning

2011-05-26 Thread Romi
First of all subscribe to the mailing list.

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Single-document-scanning-tp2987614p2987705.html
Sent from the Solr - User mailing list archive at Nabble.com.


RE: Single document scanning

2011-05-26 Thread Romi
it seems, try again for better results

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Single-document-scanning-tp2987614p2987788.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: What is omitNorms

2011-05-26 Thread Romi
Norms are used  to boosts and field length normalization during indexing
time so that short document has higher score

How it is that if i set omitnorms=false for a field then short documents
have higher score. i could not get this point , might be because i could not
find any running example for this.would you please explain.

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/What-is-omitNorms-tp2987547p2987799.html
Sent from the Solr - User mailing list archive at Nabble.com.


UniqueKey field in schema.xml

2011-05-26 Thread Romi
suppose I have two tables in database, say product table and customer table.i
want to make (productID,customerID) a uniqueKey for my indexing document.
how can i achieve this. 

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2987807.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: problem in setting field attribute in schema.xml

2011-05-26 Thread Romi
thanks a lot bryan: it might be again the repetition, but i just want to know
WHY it is indexing the field when it is indexed=false, what if
stored=true, it is clearly written in documentation that a field is search
able only if it is indexed=true, which surely make sense.
and my application is not saying to do so i am just experimenting with solr
to learn it. want to clear my concepts about indexing.

Thanks
Romi

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2988066.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: UniqueKey field in schema.xml

2011-05-26 Thread Romi
what do you mean by combine two fields customerID and ProductId. 
what i tried is 
1. make both fields unique but it doesnot server my purpose
2. make a new field ID and copy both customerID , ProductId into ID using
CopyField and now make ID as uniqueKey
but i got a error saying: Document specifies multiple unique ids

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2988168.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: problem in setting field attribute in schema.xml

2011-05-26 Thread Romi
i deleted my index but what do u mean by restart with new schema??

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2988197.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: problem in setting field attribute in schema.xml

2011-05-26 Thread Romi
i have done it, i deleted old indexes and created new indexes but still able
to search it through *:*, and no result when i search it as field:value.
really surprising result. :-O 

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2988256.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: UniqueKey field in schema.xml

2011-05-26 Thread Romi
I am not getting how can i combine two keys in to a single string using some
delimiter

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2988284.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: UniqueKey field in schema.xml

2011-05-26 Thread Romi
i might have  misspelled the question.
 this is the entry in my db-data-config.xml file: 
entity name=torder query=select
UID_PK,creationDate,email,confirmationCode from torder 
field column=creationDate name=date /
entity name=torderattribute  query=select UID_PK from  torderattribute
where orderUID='${torder.UID_PK}'
 field column=UID_PK name=UID /
/entity
 /entity


now i want combine UID_PK and UID for the uniqueKey  of my indexing documet.
i want to know how can i achieve this through schema.xml

Thanks
Romi

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2988323.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: problem in setting field attribute in schema.xml

2011-05-26 Thread Romi
did u mean when i set indexed=false and store=true, solr does not index
the field's value but store its value as it is???

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2988458.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: UniqueKey field in schema.xml

2011-05-26 Thread Romi
I tried it as :
entity name=torder query=select
UID_PK,creationDate,email,confirmationCode from torder 
field column=creationDate name=date /
entity name=torderattribute transformer=TemplateTransformer
query=select UID_PK from  torderattribute where
orderUID='${torder.UID_PK}'
 field column=UID_PK
h3template={torder.UID_PK},${torderattribute.UID_PK}
 /
/entity
   /entity



But i suppose it is not correct because here i am not mapping UID_PK of
torderattribute to any of field in  schema.xml. can i add like this:
field column=UID_PK name= ID
template={torder.UID_PK},${torderattribute.UID_PK} /


where ID is a field in schema.xml and it is UniqueKey.

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2988484.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: problem in setting field attribute in schema.xml

2011-05-26 Thread Romi
:), Thanks.. now i got the purpose of indexed and store. 

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2988506.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: problem in setting field attribute in schema.xml

2011-05-26 Thread Romi
Thanks for making me understand the concept of indexing and storing field.
now i got the point :)

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2988516.html
Sent from the Solr - User mailing list archive at Nabble.com.


how can i index data in different documents

2011-05-26 Thread Romi
Hi, i was not getting reply for this post, so here i am reposting this,
please reply.

In my database i have two types of entity customer and product. I want to
index customer related information in one document and product related
information in other document. is it possible via solr , if so how can i
achieve this.

Thanks  Regards
Romi. 

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-can-i-index-data-in-different-documents-tp2988621p2988621.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: UniqueKey field in schema.xml

2011-05-26 Thread Romi
first, you're missing a $ Sign for the first Variable.

second, why not just field column=ID .. / ? The field-Tag has no
ID, in case you're using the TemplateTransformer.


I got my solution..thanks for it.
but after looking your this reply..please make it clear:
UID_PK is a column in my database table torderattribute, then I it is
mandatory to map it in schema.xml,that is why i use field column=UID_PK
name= ID ../
then how can i just use field column=ID .. /

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2988635.html
Sent from the Solr - User mailing list archive at Nabble.com.


why use QueryElevationComponent

2011-05-26 Thread Romi
what is QueryElevationComponent, why it is used. in my schema.xml if i do not
declare a uniqueKey then it shows the error
 org.apache.solr.common.SolrException: QueryElevationComponent requires the
schema to have a uniqueKeyField

why so ??

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/why-use-QueryElevationComponent-tp2988675p2988675.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: UniqueKey field in schema.xml

2011-05-26 Thread Romi
Stefen, as u can see

entity name=torder query=select
UID_PK,creationDate,email,confirmationCode from torder 
field column=creationDate name=date /
entity name=torderattribute
transformer=TemplateTransformer query=select UID_PK from  torderattribute
where orderUID='${torder.UID_PK}'
 field column=UID_PK
h3template={torder.UID_PK},${torderattribute.UID_PK}
 /
/entity
   /entity


orderUID is a foreignkey for the table torderattribue which maps to
UID_PK(pk) of torder.
when i run the query select UID_PK from  torderattribute where
orderUID='${torder.UID_PK}' this should fetch multiple rows ,because
corredponding to one orderUID there are multiple rows.
but it is not.
to make it more clear consider this:
torder:
UID_PK(primary key) 
120
121
122
torderattribute
UID_PK(primary key)  orderUID
86   120
87120
89121
90121
91 121

and in my search result i got only(120,86),(121,89).  i am missing 3 values
in torderattribute. why so , please explain.
Thanks
Romi.

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/UniqueKey-field-in-schema-xml-tp2987807p2988774.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: how can i index data in different documents

2011-05-26 Thread Romi

Ensure that when you add your documents, their type value is
effectively set to either table1 or table2. 

did you mean i set document name=d1 type=table1 in schema.xml???

but as far as i concern there can only be one document tag then what about
the table2??

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-can-i-index-data-in-different-documents-tp2988621p2988789.html
Sent from the Solr - User mailing list archive at Nabble.com.


problem in setting field attribute in schema.xml

2011-05-25 Thread Romi
In my schema.xml file i made a filed attribute indexed=false and stored=true.
ie. i am not indexing this field but still in my search results i am getting
values for this field, why is so any idea?

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2984126.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: problem in setting field attribute in schema.xml

2011-05-25 Thread Romi
Please reply, i am not getting any of my problems reply in this forum.

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2984151.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: problem in setting field attribute in schema.xml

2011-05-25 Thread Romi
if i do stored=false then it indexes the data but not shows the data in
search result. but in my case i do not want to index the data for a field
and to the my surprise even if i am doing indexed=false for this field, i
am still able to get that data through the query *:* but not getting the
data if i run filter query as field:value, its really confusing what solr is
doing. 

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2984239.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: problem in setting field attribute in schema.xml

2011-05-25 Thread Romi
If i do uniqueField to indexed=false then it shows the exception
org.apache.solr.common.SolrException: Schema Parsing Failed


and in http://wiki.apache.org/solr/SchemaXml#Fields it is clearly mentioned
that a non-indexed field is not searchable then why i am getting search
result. why should stored=true matter if indexed=false


-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2984306.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: problem in setting field attribute in schema.xml

2011-05-25 Thread Romi
indexed controls whether you can find the document based on the content of
this field.
stored controls whether you will see the content of this field in the
result.


ya...but when i set indexed=false for a particular field, and i search as
*:* then it will search all documents thats true, but what i think is it
should not contain the field which i set as indexed=true.
for example in a document fields are id, author,title. and i for author
field i set indexed=false, then author should not be indexed and when i
perform search  as *:* it should show all documents as
doc
string name= id id1/string
string name=titlet1/string
string name=authora1/string
/doc 

but if i search author:a1, then 0 result will be found, why so?? to be very
clear i am performing full-import where every time new indexes are created
then also for safer side i deleted the indexes and recreated them then too i
am facing the same problem.

-
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/problem-in-setting-field-attribute-in-schema-xml-tp2984126p2987530.html
Sent from the Solr - User mailing list archive at Nabble.com.


  1   2   >