Really weird issue here. I have ezsearch working on localhost get results back. On dev site I dont get any results.
I am writing out the generated query to a hidden field. On both local and dev box same query is generated. When you run the query in the backoffice using examine management searcher you get results back. The indexes on both local and dev contain same number of documents. No errors in log file, its got me stumped.
I have seen the same thing once. I put it down to index inconsistencies. I deleted the indexes and re-indexed and it came right. Not sure if it had something do with machine names or something like that but I didn't investigate further as it repaired itself.
Yup everything is exactly the same site is shared db and it autobuilds out using teamcity. On dev i republished everything and rebuilt indexes. The weird thing is running the query in backend gives results just not on front end. I am going to completely delete the index by hand then rebuild see if that fixes it.
Ok mystery solved. In my ezsearch i was searching on field contents. This field is injected into the index by the bootstrapper class found in app_code directory. On my dev server when teamcity builds it will exclude .cs files hence i never had contents field on dev. So I moved the code into my dll and now it all works woot!!!!
Search issue on dev site
Really weird issue here. I have ezsearch working on localhost get results back. On dev site I dont get any results.
I am writing out the generated query to a hidden field. On both local and dev box same query is generated. When you run the query in the backoffice using examine management searcher you get results back. The indexes on both local and dev contain same number of documents. No errors in log file, its got me stumped.
Ismail
I have seen the same thing once. I put it down to index inconsistencies. I deleted the indexes and re-indexed and it came right. Not sure if it had something do with machine names or something like that but I didn't investigate further as it repaired itself.
100% you configurations are the same?
Peter
Pete,
Yup everything is exactly the same site is shared db and it autobuilds out using teamcity. On dev i republished everything and rebuilt indexes. The weird thing is running the query in backend gives results just not on front end. I am going to completely delete the index by hand then rebuild see if that fixes it.
Ismail
Pete,
My colleague has downloaded source and built then done search localhost and it all works!!! GRRRRRR
Regards
Ismail
Ok mystery solved. In my ezsearch i was searching on field contents. This field is injected into the index by the bootstrapper class found in app_code directory. On my dev server when teamcity builds it will exclude .cs files hence i never had contents field on dev. So I moved the code into my dll and now it all works woot!!!!
Regards
Ismail
is working on a reply...